Ubuntu下MySQL安装及基本设置
No1. Ubuntu下MySQL 安装
sudo apt-get install mysql-server mysql-client
记得root密码别忘了。
No2. 验证Mysql安装
sudo service mysql restart
No3. 设置Mysql远程IP访问
/etc/MySQL/my.cnf找到bind-address = 127.0.0.1,注释掉
No4. 设置字符集、排序规则等。
打开/etc/mysql/my.cnf,在[mysqld]后添加character-set-server=utf8
No5. 设置root远程访问
mysql -u root -p ->GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; ->FLUSH PRIVILEGES;
重启mysql服务即可生效!
相关推荐
CoderToy 2020-11-16
emmm00 2020-11-17
王艺强 2020-11-17
ribavnu 2020-11-16
bianruifeng 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
vivenwan 2020-11-13
moyekongling 2020-11-13
云中舞步 2020-11-12
要啥自行车一把梭 2020-11-12
aydh 2020-11-12
kuwoyinlehe 2020-11-12
minerk 2020-11-12
vitasfly 2020-11-12
jazywoo在路上 2020-11-11
敏敏张 2020-11-11
世樹 2020-11-11