<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; 添加MySQL账户</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/%E6%B7%BB%E5%8A%A0mysql%E8%B4%A6%E6%88%B7/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux系统下授权MySQL账户访问指定数据库</title>
		<link>https://www.osyunwei.com/archives/893.html</link>
		<comments>https://www.osyunwei.com/archives/893.html#comments</comments>
		<pubDate>Sat, 05 Nov 2011 06:44:06 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql访问指定数据库]]></category>
		<category><![CDATA[添加MySQL账户]]></category>

		<guid isPermaLink="false">http://w66416.s75.chinaccnet.cn/?p=893</guid>
		<description><![CDATA[需求： 1、在MySQL中创建数据库mydata 2、新建MySQL账户admin密码123456 3、赋予账户admin对数据库mydata具有完全操作权限 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 ====================================================================== 操作如下： 1、登录MySQL数据库       mysq  -uroot  -p    #在终端命令行输入       123456         #输入密码 2、show databases;     #显示数据库列表 3、create database mydata;     #建立数据库mydata 4、insert into mysql.user(Host,User,Password) values('localhost','admin',password('123456'));    #新建账户admin，密码123456 5、flush privileges;    #刷新系统授权表 6、grant all on mydata.* to 'admin'@'%' identified by '123456' with grant option;    #允许账户admin从任何主机连接到数据库mydata 至此，账号admin对数据库mydata具有完全管理权限。 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 ========================================================================   扩展：       grant all [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/893.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/893.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
