日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > 数据库 >内容正文

数据库

用yum安装完mysql后没有mysqld的问题

發(fā)布時(shí)間:2023/12/10 数据库 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 用yum安装完mysql后没有mysqld的问题 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

在Centos中用命令?yum?install?mysql安裝數(shù)據(jù)庫(kù),但裝完后運(yùn)行mysqld啟動(dòng)mysql的時(shí)候提示找不到,通過(guò) find / | grep?mysqld?也沒(méi)找到mysqld的目錄,后來(lái)在Google上搜索下,才知道用yum安裝時(shí)候mysql也有三個(gè)參數(shù)的。

yum install?mysql,只是安裝了mysql的client,如果你只安裝了這一步,就會(huì)發(fā)現(xiàn)找不到mysqld

yum install mysql-server,才安裝了mysql的服務(wù)后臺(tái)程序;當(dāng)然還有一個(gè)MySQL-devel。

裝上后就有mysqld了。

具體步驟如下:

yum install mysql yum install mysql-server yum install mysql-devel chgrp -R mysql /var/lib/mysql chmod -R 770 /var/lib/mysql service mysqld start

  

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: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h LAMP.ORG password 'new-password' Alternatively you can run: /usr/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 /usr ; /usr/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 /usr/bin/mysqlbug script! The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at http://shop.mysql.comz


?

轉(zhuǎn)載于:https://www.cnblogs.com/caizhendong/archive/2013/03/11/5456024.html

總結(jié)

以上是生活随笔為你收集整理的用yum安装完mysql后没有mysqld的问题的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。