mysql 8创建远程访问用户
[[email protected] /]# mysql -u root -p #登录服务器数据库
Enter password:123xxx
>user mysql;
>CREATE USER ‘rtuser‘@‘%‘ IDENTIFIED BY ‘[email protected]#‘;
>ALTER USER ‘rtuser‘@‘%‘ IDENTIFIED WITH mysql_native_password BY ‘[email protected]#‘;
>GRANT ALL ON *.* TO ‘rtuser‘@‘%‘;
>flush privileges;
连接mysql速度慢的解决方法
my.ini里面添加
[mysqld]
skip-name-resolve #一般我们只要这一项便可以
skip-grant-tables
原文地址:https://www.cnblogs.com/94cool/p/10888298.html
时间: 2024-11-08 09:59:44