Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
mysql问题,搞了3天了,实在搞不定,求大神指点
Apps Section
837
views ·
7
replies ·
To
floor
Go
loveYouIsHard
deepin
2014-10-17 19:49
Author
应用商店安装的mysql,终端中输入mysql没问题可以查看版本号,mysql start就报错(貌似是个链接错误),网上下的,提取在一个文件夹里面,貌似是没有path。终端中输入mysql就提示让install。
应用商店安装的mysql如何启动?
或者网上安装包mysql的执行文件是哪个?看网上教程,有的说在ect/init.d里面,可是里面没那个文件,安装目录下的也没有,实在不知道终端怎么启动mysql。mysqld命令也都不行。
求大神指点,classpath问题或者启动问题 解决1个就行!
Reply
Like 0
Favorite
View the author
All Replies
不避风云
deepin
2014-10-17 20:45
#1
sudo service myspl start
Reply
Like 0
View the author
不避风云
deepin
2014-10-17 20:47
#2
不好意思,拼写错误是MySQL,我正在利用xampp 跑yii,有问题可以共同琢磨
Reply
Like 0
View the author
loveYouIsHard
deepin
2014-10-17 22:41
#3
mysql: unrecognized service
Reply
Like 0
View the author
不避风云
deepin
2014-10-17 22:58
#4
sudo apt-get install --reinstall MySQL
试试,都是小写。
Reply
Like 0
View the author
loveYouIsHard
deepin
2014-10-17 23:54
#5
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
E: 未发现软件包 MySQL
卸载重装有3个有关mysql的包显示deinstall
这3天一直是这个错,ERROR 2002 (HY000): Can't connect to local MySQL server through socket'/var/run/mysqld/mysqld.sock' (2)
我是不是可以重装系统了?
Reply
Like 0
View the author
loveYouIsHard
deepin
2014-10-18 01:50
#6
郁闷了,重装了系统,依旧这毛病。应用商店输入mysql安装的第二个5.5版本
输入:mysql
报错ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
输入:sudo apt-get install --reinstall MySQL
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
E: 未发现软件包 MySQL
输入:sudo service mysql start
显示mysql: unrecognized service
----------------------------------------------------------------------------------------------
问题搞定了,分享给以后万一遇到同样问题的朋友吧。
以上这个问题就是安装mysql安装的不对。
用深度商店下载1个安装包不行,还要下载mysql-server,mysql-client。
也可能只需要安装其中1个吧,反正我安装完5.5后,不行,安装完这2个,服务就启动了
启动命令:sudo service mysql start
系统环境:deepin linux2014
这3天网上看了很多答案,发现linux最大的问题不是没答案!而是答案太多!
如果像我一样悲剧了,切记!原来的配置要全部删掉!不然系统白装 :shock: 如果帮到你,注册用户顶帖子,给分享者动力!鼓捣了3天,重装了3次系统才搞明白,这么点破事。
Reply
Like 0
View the author
liangrui
deepin
2014-10-21 00:06
#7
非常感谢你的反馈。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
login to bbs.deepin.org only works without ipv6
Deepin 25.2.0 Black Screen After Sleep
NVIDIA graphics driver are not working with enabled secure boot
OBS Flatpak with Treeland
Popular Events
More
应用商店安装的mysql如何启动?
或者网上安装包mysql的执行文件是哪个?看网上教程,有的说在ect/init.d里面,可是里面没那个文件,安装目录下的也没有,实在不知道终端怎么启动mysql。mysqld命令也都不行。
求大神指点,classpath问题或者启动问题 解决1个就行!