惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
D
Docker
Blog — PlanetScale
Blog — PlanetScale
罗磊的独立博客
美团技术团队
V
V2EX
Last Week in AI
Last Week in AI
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Microsoft Security Blog
Microsoft Security Blog
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
B
Blog RSS Feed
博客园_首页
B
Blog
博客园 - 叶小钗
I
InfoQ
WordPress大学
WordPress大学
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
The GitHub Blog
The GitHub Blog
The Register - Security
The Register - Security
MyScale Blog
MyScale Blog
云风的 BLOG
云风的 BLOG
博客园 - 司徒正美
Latest news
Latest news
W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
C
CXSECURITY Database RSS Feed - CXSecurity.com
Recent Commits to openclaw:main
Recent Commits to openclaw:main
N
News and Events Feed by Topic
S
Secure Thoughts
The Hacker News
The Hacker News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News

博客园 - s3

RC4 加密算法asp版 汇编指令速查(转) C#实现VB中的asc和chr函数,字符(含中文)转ASCII 飘零网络验证-商业版3和金盾版1.5-研究中 virtualbox安装mac os x雪豹 最新的IP数据库备份 安装.net framework 4.0出错 “不信任的操作” ubuntu11.10安装redmine1.3 Fedora安装openresty Cosign安装-iis过滤模块介绍 fedora16安装slickedit (转)SlickEdit的备份功能 (转)Slickedit的版本控制 (转)SlickEdit的按需显示 ubuntu11.10下使用slickedit16编译nginx(一) FreeBSD8.2安装GNOME(转) FreeBSD8.2安装(转) FreeBSD安装时的参考文章 Loong SSO安装部署
fedora16安装mysql
s3 · 2011-11-19 · via 博客园 - s3

通过界面进行安装的,安装 好后不能 启动,需要自己手动启动和修改密码

参考网上的资料

启动mysql 

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  

 修改root的密码 

mysqladmin -u root password 'newpassword' 更改密码 

mysql -u root -p   登录数据库 

 mysql> DROP DATABASE test;   删除test数据库 

mysql> DELETE FROM mysql.user WHERE user = ''; 删除匿名帐户 

mysql> FLUSH PRIVILEGES;   重载权限 

添加mysql用户:GRANT ALL PRIVILEGES ON my_db.* TO 'user'@'localhost' IDENTIFIED BY 'password';

# sudo service mysqld restart  重启服务

# sudo service mysqld stop  关闭服务

 /etc/rc.d/init.d/mysqld status   查看mysql状态

# sudo chkconfig --del mysqld  删除服务清单中mysql服务

 chkconfig --list    察看mysql是否在自动启动列表中

#sudo /etc/init.d/mysqld start   启动mysql服务

#sudo /etc/init.d/mysqld stop   关闭mysql服务

#sudo /etc/init.d/mysqld restart   重启mysql服务

/usr/bin/mysqladmin -u root -p'password' shutdown关闭mysql服务