My SQLリモート接続
1374 ワード
//データベースを開く
1.すべてのユーザとIPアドレスを指定したユーザ
作成ユーザ
エラー1:
エラー2:
mysql -u root -p -P 3306;
//すべてのデータベースを表示するshow databases;
//データベースを終了するexit;
passwordフィールドがauthenticationに変更されました.string原SELECT User, password,FROM user;
現SELECT User, authentication_string,Host FROM user;
リモート接続の許可1.すべてのユーザとIPアドレスを指定したユーザ
create user 'xixi'@'192.168.1.140' identified by 'qaz904904' ;
grant all privileges on *.* to 'xixi' @'192.168.1.140' ;
作成ユーザ
create user 'UserName'@'localhost' identified by '123123';
権限付与grant all privileges on . to 'UserName'@'localhost' ;
インストールMySQL ODBC 3.51 DriverインストールMySQL ODBC_参照c#リモートアクセスMySQLデータベース_リファレンスエラー1:
Access denied for user 'test'@'%' to database ';'
解決リファレンスhttps://blog.csdn.net/roy_70/article/details/82669138 エラー2:
uthentication plugin 'caching_sha2_password' cannot be loaded:
解決リファレンスhttps://blog.csdn.net/u011182575/article/details/80821418 ALTER USER 'test'@'%' IDENTIFIED BY '123' PASSWORD EXPIRE NEVER;
ALTER USER 'test'@'%' IDENTIFIED WITH mysql_native_password BY '123';
alter user 'test'@'%' identified by '123' ;