linux下安装mysql报错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux下安装mysql报错相关的知识,希望对你有一定的参考价值。

Installing mysql system tables...
/alidata/server/mysql/bin/mysqld: 1: /alidata/server/mysql/bin/mysqld: cannot create @▒O@P▒@@$@@@@@▒@@@@▒▒▒▒▒▒▒▒▒p▒U▒▒U▒▒U▒▒@@ P▒td▒d▒▒d▒▒d▒

▒Q▒t/lib64/ld-linux-x86-64.so.2GNU ▒8▒1G ▒gQ▒27l▒&05▒&▒▒.▒6▒,l8!1▒'▒5&8▒,▒▒▒▒-▒)v(8▒5▒▒=▒▒7▒4▒▒▒▒s
▒-
2▒8▒'▒![ ▒22▒/▒-(▒W56▒1-▒5?8▒
;(▒&/''▒▒2P▒▒▒!:Gd▒19+▒ +74c$▒6▒(3▒▒▒▒1/F0d▒!4▒/▒e.▒*: Directory nonexistent
/alidata/server/mysql/bin/mysqld: 1: /alidata/server/mysql/bin/mysqld:ELF: not found
/alidata/server/mysql/bin/mysqld: 3: /alidata/server/mysql/bin/mysqld: Syntax error: word unexpected (expecting ")")

Installation of system tables failed! Examine the logs in
/alidata/server/mysql/data/ for more information.

You can try to start the mysqld daemon with:

shell> /alidata/server/mysql/bin/mysqld --skip-grant &

and use the command line tool /alidata/server/mysql/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /alidata/server/mysql/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /alidata/server/mysql/data/ that may be helpful.

Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /alidata/server/mysql/scripts/mysqlbug script!

redhat 需要向RHN 注册后才能用yum升级更新,就是必须付费
建议使用centos,或者添加第三方源
安装mysql
1.rpm -ivh perl-CGI-(tab)
2.rpm -ivh perl-DBI-1.52-1.fc6.i386.rpm
3.rpm -ivh mysql-5.0.22-2.1.i386.rpm \\ perl-DBD-MySQL-3.0007-1.fc6.i386.rpm
4.rpm -ivh mysql-server-5.0.22-2.1.i386
参考技术A 您好,是这样的:
在网上找了一下,原来是包冲突,conflicts英文就是冲突的意思。
我把那些冲突 的包全部卸载;
yum -y remove mysql-libs-5.1.52* -y的意思就是不用询问是否remove
卸载完成之后,再安装MySQL成功了。
yum install MySQL-server-community-5.1.58-1.rhel5.i386.rpm
参考技术B 你安装的mysql版本是不是与你的操作系统版本不一致啊!本回答被提问者采纳

linux下mysql安装

service mysql start

报错:

Starting MySQL. ERROR! The server quit without updating PID file(xxx/x.pid)

查看日志:

[ERROR] Could not create unix socket lock file /usr/local/mysql/sock/mysql.sock.lock.
2018-11-30T03:01:12.764913Z 0 [ERROR] Unable to setup unix socket lock file.
2018-11-30T03:01:12.764928Z 0 [ERROR] Aborting

原因:

mysql用户没有/usr/local/mysql/sock/权限

解决办法:

chown -R mysql.mysql /usr/local/mysql/sock/

 



以上是关于linux下安装mysql报错的主要内容,如果未能解决你的问题,请参考以下文章

linux下mysql安装

ubuntu安装mysql遇到的坑----解决Mysql报错缺少libaio.so.1

linux安装MySQL启动报错

linux_mysql安装

Linux下安装MySQLdb模块

linux安装mysql报错