You need to run the following command as user root in mysql:
mysql>grant file on *.* to user@localhost; mysql>flush privileges;
Substitute user with the actual mysql username.
**Warning: Let server owner know that by granting file option to a user, the user can overwrite any world writable file on the server according to the mysql documentation. Even though I couldn't get mysql to write outside of the selected database directory.
Currently the basic tools are only accessible as root user logged in with telnet. Type
client_tools than return
and select mysql from the menu. You can however do the initial install of phpMyAdmin on the main server as outlined in the FAQ and administer databases for your users from its web based tools.
You can install PhpMyAdmin using client_tools under install scripts. You must be logged in telnet as root user to do this.
We are currently allowing you to install version 2.1 the latest release, if you installed 1.2.6 the first version we were offering you can reinstall to upgrade on a domain. Keep in mind the config file will need to be redone if customized by your client.
If you configure PhpMyAdmin properly you can manage your customer database setups from a webpage. Remember the configuration has to be for root user to have access to do this.
Use the following outline to connect and begin querying the MySQL server from within your PHP scripts. Remember that you cannot connect to your databases remotely due to security reasons. You can only connect to them from localhost.
1. Connect to the MySQL Server Use the following statement to connect to the database server. Substitute the username, and password for ones you have created in the WebControl System.
MYSQL_CONNECT('localhost','USERNAME','PASSWORD');
2. Select Your Database Use the following statement to select the database you wish to connect to. Make sure you substitute your database name for the example. @mysql_select_db('DATABASENAME');
3. Executing A Query You are now ready to execute your queries. (Most problems that arise with your scripts will be due to incorrect permission settings.)
Use the following outline to connect and begin querying the MySQL server from a Telnet session. Remember that you cannot connect to your databases remotely due to security reasons, you can only connect from localhost.
1. Connect to the MySQL Server servername:> mysql -u username -p
2. Connect to the Database mysql> use DATABASENAME;