之前在研究LAMP环境时,一直有个问题在困扰着我。那就是,架设的网站如果含有数据库安装页面,必须得主机上才行,也就是必须得用
之前在研究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.
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号