mysql cannot remote access 10061 error (ubuntu 16.04 mysql 5.7.13)

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.cnf


bind-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.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325740594&siteId=291194637