Can't connect to MySQL server on (ip or domain name)

前端 未结 6 2133
旧巷少年郎
旧巷少年郎 2021-02-13 16:48

I\'m trying to configure a web server (Debian 7). I followed this tutorial. I\'m renting my server thanks to gandi.net service. And i have now apache2, mysql, php5 up and runnin

6条回答
  •  一整个雨季
    2021-02-13 17:29

    1. locate my.cnf
    2. vi < copy the path >
      for e.g. ==> vi /usr/local/etc/my.cnf
    3. Now you see and compare below if you find difference then update
    # Default Homebrew MySQL server config  
    [mysqld]
    # Only allow connections from localhost  
    bind-address = 0.0.0.0
    

    Now press button => esc and :wq (vi commands)

    Restart the MySQL =>

    sudo /usr/local/mysql/support-files/mysql.server stop
    sudo /usr/local/mysql/support-files/mysql.server start
    

    Now good to go...

提交回复
热议问题