位置: 编程技术 - 正文
推荐整理分享fedora8 下mysql 安装的安装方法(mysql8安装步骤),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:mysql 8安装教程,mysql8安装步骤,mysql8怎么安装,mysql8.19安装步骤图解,fedora安装mysql,fedora安装mysql,mysql8.0安装步骤图解,mysql8.0安装步骤图解,内容如对您有帮助,希望把文章链接给更多的朋友!
我下载的是目前最新的版本mysql-5.0.-linux-i.tar.gz 安装过程: su 到root 权限。 #tar -zvxf mysql-5.0.-linux-i.tar.gz #mv mysql-5.0./ /usr/local/mysql #cd /usr/local/mysql #groupadd mysql #useradd -g mysql mysql #chown -R mysql . #chgrp -R mysql . #scripts/mysql_install_db --user=mysql #chown -R root . #chown -R mysql data #bin/mysqld_safe --user=mysql & 按照官方文档说这就应该能启动了,可是报错如下: nohup: ignoring input and redirecting stderr to stdoutStarting mysqld daemon with databases from /var/lib/mysqlSTOPPING server from pid file /var/run/mysqld/mysqld.pid :: mysqld ended
查看日志:
#less /var/log/mysqld.log其中有一段如下: 0:: [ERROR] /usr/local/mysql/bin/mysqld: Can't create/write to file '/var/run/mysqld/mysqld.pid' (Errcode: 2) 0:: [ERROR] Can't start server: can't create PID file: No such file or directory :: mysqld ended
#cd /var/run/#lsmysqld目录不存在#mkdir /var/run/mysqld#cd /var/run/mysqld创建文件mysqld.pid#touch mysqld.pid#cd..#chown -R mysql mysqld .
#cd /usr/local/mysql/#bin/mysqld_safe --user=mysql &nohup: ignoring input and redirecting stderr to stdoutStarting mysqld daemon with databases from /var/lib/mysql
能正常启动
#bin/mysqladmin -u root password root
又出错
[root@localhost mysql]# bin/mysqladmin -u root password rootbin/mysqladmin: connect to server at 'localhost' failederror: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
[root@localhost mysql]# bin/mysql -u root -pEnter password:ERROR (HY): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
分析:是/tmp/mysql.sock 不存在# cd /var/lib/mysql/ibdata1 ib_logfile0 ib_logfile1 mysql/ mysql.sock test/由于mysql 默认的mysql.sock 是在/var/lib/mysql/mysql.sock,
创建符号连接:# ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock# bin/mysql -u rootWelcome to the MySQL monitor. Commands end with ; or g.Your MySQL connection id is 1Server version: 5.0. MySQL Community Server (GPL)
Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
mysql>
修改root 密码#cd /usr/local/mysql/#bin/mysqladmin -u root -p password yourpassword
一切ok.一切ok...
设置Linux系统文件权限 Linux中,每一个文件都具有特定的属性。主要包括文件类型和文件权限两个方面。可以分为5种不同的类型:普通文件、目录文件、链接文件、设备文件
Fedora Core 4.0 安装图解 安装前的准备工作要下载四张ISO,或者一张DVD,建议下载四张CD映像的,因为DVD映像据说在安装过程中有点问题,有的弟兄能安装上,有的弟兄安装不上
Fedora Core 5(FC-5)正式版下载 FTP下载(请复制以下链接用迅雷等下载工具进行下载!!)
标签: mysql8安装步骤
本文链接地址:https://www.jiuchutong.com/biancheng/353831.html 转载请保留说明!友情链接: 武汉网站建设