美文网首页
MySQL安装步骤

MySQL安装步骤

作者: 踩着阳光 | 来源:发表于2020-04-27 20:28 被阅读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

    相关文章

      网友评论

          本文标题:MySQL安装步骤

          本文链接:https://www.haomeiwen.com/subject/evauwhtx.html