centos6.5安装mysql5.6.23报错

参考链接:http://blog.csdn.net/wendi_0506/article/details/39478369

注意:ftp需要二进制下载源码包,不然会导致解压失败

安装后启动:

参考:http://blog.sina.com.cn/s/blog_637e04c9010117ri.html

[email protected] mysql]# /etc/rc.d/init.d/mysql status
MySQL is not running, but lock file (/var/lock/subsys/mysql[FAILED]
[[email protected] mysql]# /etc/rc.d/init.d/mysql start
Starting MySQL...The server quit without updating PID file (/usr/local/mysql/data/localhost.localdomain.pid).                              [FAILED]

2.解决办法

#cd /usr/local/mysql(进入mysql安装目录)
#chown -R mysql.mysql .
#su - mysql
$cd server
$scripts/mysql_install_db

3.

[[email protected] ~]# cd /usr/local/mysql

[[email protected] mysql]# chown -R mysql.mysql .
[[email protected] mysql]# su - mysql
[[email protected] ~]$ cd /usr/local/mysql
[[email protected] mysql]$ scripts/mysql_install_db
Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

./bin/mysqladmin -u root password ‘new-password‘
./bin/mysqladmin -u root -h localhost.localdomain password ‘new-password‘

Alternatively you can run:
./bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl

Please report any problems with the ./bin/mysqlbug script!

[[email protected] mysql]$ /usr/local/mysql/bin/mysqld_safe --user=mysql &
[1] 11767
[[email protected] mysql]$ 120502 07:01:17 mysqld_safe Logging to ‘/usr/local/mysql/data/localhost.localdomain.err‘.
120502 07:01:17 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
[[email protected] mysql]$ /etc/rc.d/init.d/mysql status
MySQL running (11830)                                     [  OK  ]
[[email protected] mysql]$ /etc/rc.d/init.d/mysql start
Starting MySQL                                             [  OK  ]

还需修改的:

vi /etc/my.cnf

[mysqld]

datadir=/var/lib/mysql

socket=/var/lib/mysql/mysql.sock

user=mysql

# Disabling symbolic-links is recommended to prevent assorted security risks

symbolic-links=0

[mysqld_safe]

log-error=/var/log/mysqld.log

pid-file=/var/run/mysqld/mysqld.pid

[client]

socket=/var/lib/mysql/mysql.sock

其中 socket=/var/lib/mysql/mysql.sock需要相同

时间: 2024-10-13 23:18:51

centos6.5安装mysql5.6.23报错的相关文章

centos6.8安装python3.7.3报错Can't connect to HTTPS URL because the SSL module is not available问题解决

环境:CentOS release 6.8 (Final) # 直接编译python3.7在使用pip3安装依赖的时候报错: Can't connect to HTTPS URL because the SSL module is not available. 解决方法: 1.编译安装OpenSSL 1.0.2j版本并重新配置环境变量 下载OpenSSL源码包: wget http://www.openssl.org/source/openssl-1.0.2j.tar.gz 解压缩,编译安装:

源码安装mysql5.6x启动报错:[ERROR] Can't find messagefile '/data/mysqldata/3306/english/errmsg.sys'

170502 10:43:40 mysqld_safe Starting mysqld daemon with databases from /data/mysqldata/3306/data 2017-05-02 10:43:40 0 [Warning] The syntax '--language/-l' is deprecated and will be removed in a future release. Please use '--lc-messages-dir' instead.

记一次 centos7.2 rpm方式安装mysql5.7.19 报错

0.环境 本文操作系统: CentOS 7.2.1511 x86_64 MySQL 版本: 5.7.19 安装之前先把开发环境装一下 yum -y install gcc gcc-c++ autoconf automake zlib zlib-devel openssl openssl-devel pcre* make gd-devel libjpeg-devel libpng-devel libxml2-devel bzip2-devel libcurl-devel glib2 glib2-d

centos7.2编译安装mysql5.7.21报错解决

编译安装mysql 安装环境安装包[[email protected] ~]# ls /root/tools/app.tar.gz mysql-5.7.21 mysql-5.7.21.tar.gz nginx-1.15.0.tar.gz nginx_conf.tar.gz操作系统[[email protected] ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) 内存[[email protected] ~]# f

Centos6.5安装mysql-5.7.23

1.卸载系统自带mysq(没有忽略此步骤) [[email protected] ~]$ rpm -qa|grep mysql mysql-community-common-5.7.19-1.el6.x86_64 rpm -e --nodeps mysql-community-common-5.7.19-1.el6.x86_64 2.下载解压安装包 [[email protected] apps]$ wget https://cdn.mysql.com//Downloads/MySQL-5.7/

安装mysql-5.7.17cmke报错

-- Looking for SHM_HUGETLB - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void * -- Check size of 

Centos6.5安装 scipy sciki-learn 一堆报错

最近给业务线安装python的扩展numpy,scripy,scikit-learn时,遇到了一堆报错,也走了一些弯路,费了好长时间,最好发现竟然是一个很简单的问题. 系统环境:Centos 6.5 Python: 2.7 pip install numpy 很顺利,没有报错 pip install scipy 一堆报错,报错大致如下 Installing scipy on redhat with error "no lapack/blas resources found" 然后就开始

二进制安装mysql5.6.39报错找不到libnuma.so.1库文件

二进制安装mysql5.6.39初始化时报错如下: [[email protected] scripts]# ./mysql_install_db --datadir=/data/mysql/data --basedir=/usr/local/mysql --user=mysql --explicit_defaults_for_timestamp Installing MySQL system tables.../usr/local/mysql/bin/mysqld: error while l

在Centos系统中安装Mysql-5.5.52报错(一)

安装方式:  二进制免编译安装 初始化出错 mysql/scripts/mysql_install_db --basedir=/application/mysql/ --datadir=/application/mysql/data/ --user=mysql 提示: /application/mysql//bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: