安装程序的时候报错:
0 |
Can't connect to local MySQL server through socket '/opt/service/mysql-5.5.19 |
解决方法:
0 |
在/etc/my.cnf中[mysqld]中,修改socket = /opt/service/mysql-5.5.19/tmp/mysql.sock |
linode主机Centos7安装mysql过程:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
[root@JP /]# yum install mysql Package 1:mariadb-5.5.40-1.el7_0.x86_64 already installed and latest version [root@JP /]# systemctl start mysql.service Failed to issue method call: Unit mysql.service failed to load: No such file or directory. [root@JP /]# systemctl list-unit-files|grep mysql [root@JP /]# systemctl list-unit-files|grep mariadb [root@JP /]# yum install mariadb-server [root@JP /]# systemctl list-unit-files|grep mariadb mariadb.service disabled [root@JP /]# systemctl start mariadb.service [root@JP /]# netstat -tunlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 12181/mysqld [root@JP /]# mysql Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 2 Server version: 5.5.40-MariaDB MariaDB Server Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> |
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!