problem statement
Several authorization methods mentioned in other articles are still unable to connect remotely after authorization
The new version of mysql setting path and the new system are different from the original
Installation Environment
ubuntu 16.04
mysql 5.7.13
Solution
/etc/mysql/mysql.conf.d/mysqld.cnfbind-address = 127.0.0.1
prefixed with # becomes # bind-address = 127.0.0.1
/etc/init.d/mysql restart
After 5.5.7 is mysql, not mysqld anymore
Attached are the commands for starting and closing the mysql service for each system
RedHat Linux (Fedora Core/Cent OS)
1. Start: /etc/init.d/mysqld start
2. Stop: /etc/init.d/mysqld stop
3. Restart: /etc/init.d/mysqld restart
Debian / Ubuntu Linux
1. Start: /etc/init.d/mysql start
2. Stop: /etc/init.d/mysql stop
3. Restart: /etc/init.d/mysql restart
Windows
1. Click "Start" -> "Run" (shortcut key Win+R)
2. Start: enter net stop mysql
3. Stop: enter net start mysql
to prompt
Redhat Linux also supports service command,
start: # service mysqld start
stop: # service mysqld stop
restart: # service mysqld restart
Windows cannot be restarted directly (restart), it can only be stopped first and then restarted.