MySQL安装步骤
2020-04-27 本文已影响0人
踩着阳光
参考文档:https://www.jianshu.com/p/276d59cbc529
数据库重启:
service mysql restart
配置文件:
vi /etc/my.cnf
亲测环境:
[client]
port=8308
socket=/usr/local/mysql/mysql.sock
[mysqld]
datadir=/usr/local/mysql/data
port = 8308
socket=/usr/local/mysql/mysql.sock
user=mysql
symbolic-links=0
skip-name-resolve
[mysqld_safe]
log-error=/usr/local/mysql/log/mysqld.log
pid-file=/usr/local/mysql/mysqld.pid
bind-address=0.0.0.0
连接方法:mysql -uwincrash -pwincrash -h127.0.0.1 -P8308