PHP视频教学,让你更快更轻松的掌握PHP。

查看完整版本: [原创]解决远程安装数据库

大斌 2008-4-9 11:46

[原创]解决远程安装数据库

解决远程安装数据库:如要转载,请注名‘[color=red][b]大斌原创[/b][/color]’,谢谢!原文出处:[url=http://www.lonerwang.cn/?action=show&id=187][color=#800080]Linux_15:解决远程安装数据库[/color][/url]

之前在研究LAMP环境时,一直有个问题在困扰着我。那就是,架设的网站如果含有数据库安装页面,必须得主机上才行,也就是必须得用localhost来安装。麻烦...............我现在的环境是装了X-WINDOWS界面,如果没安装呢?怎么办?所以要解决这个问题。
今天终于解决了,在MYSQL数据库中添加一个Remote用户即可:
Add Mysql remote user with Linux OS
MYSQL>GRANT ALL PRIVILEGES on *.* TO color@localhost IDENTIFIED BY 'password' WITH GRANT OPTION;
*:More attention the Capital letters!
*:Add an user 'color' and PWD is 'password',the authority is local and all databases;
MYSQL>GRANT ALL PRIVILEGES on *.* TO color@"%" IDENTIFIED BY 'password' WITH GRANT OPTION;
*:%=>Remote server
*:set color(password) get all authority to the databaese on the remote server or station.
下面的截图是重新安装我的blog的测试界面。
截图请到原文查看,此处不再贴了。[url=http://www.lonerwang.cn/?action=show&id=187][color=#800080]Linux_15:解决远程安装数据库[/color][/url]

蚂蚁 2008-4-9 11:49

:06: 偶去看了
页: [1]
查看完整版本: [原创]解决远程安装数据库