Home > Database > Mysql Tutorial > body text

mysql去掉localhost限制_MySQL

WBOY
Release: 2016-06-01 13:08:53
Original
1011 people have browsed it

前提必须知道当前mysql的root密码 忘记密码的请百度后 再弄

#mysql -u root -p


输入密码


然后执行一下语句

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;


密码就修改成了password,顺便也去掉了localhost的限制了,为了安全 不是在局域网 建议不要这么做

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!