<!-- generator=" CodePongo (Base on Kukkaisvoima version 15b3TA)" -->
<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/"
>
<channel><title>CodePongo: database</title><link>http://codepongo.com/blog</link><description></description><pubDate>Mon, 24 Apr 2017 17:30:06 +0200</pubDate><lastBuildDate>Mon, 24 Apr 2017 17:30:06 +0200</lastBuildDate><generator>http://codepongo.com/blog</generator><language>zh-cn</language><item><title>部署mysql
</title><link>http://codepongo.com/blog/3zpXT2</link><comments>http://codepongo.com/blog/3zpXT2#comments</comments><pubDate>Mon, 24 Apr 2017 17:30:06 +0200</pubDate><dc:creator>zuohaitao</dc:creator><category>database</category><category>mysql</category><guid isPermaLink="false">http://codepongo.com/blog/3zpXT2/</guid><description><![CDATA[ 
 [...]]]></description><content:encoded><![CDATA[
版本


bin\mysqld.exe --version
bin\mysqld.exe  Ver 5.7.18 for Win32 on AMD64 (MySQL Community Server (GPL))


配置


[mysqld]
basedir = "d:\\mysql"
datadir = "d:\\mysql\\data"


初始化


bin\mysqld.exe --console --initialize-insecure


启动


bin\mysqld.exe --console


登录


bin\mysql -u root --skip-password


修改root密码


alter user 'root'@'localhost' identified by 'password';


建立用户


bin\mysql -u root -p
create user 'username'@'%' indentified by 'password'


创建数据库


create database db;


提权


grant all privileges on db.* to username;
flush privileges;


允许root远程



grant all privileges on *.* to 'root'@'%' identified by 'password';

]]></content:encoded><wfw:commentRss>http://codepongo.com/blog/3zpXT2/feed/</wfw:commentRss></item></channel></rss>