~ubuntu-branches/ubuntu/hardy/gnue-common/hardy

« back to all changes in this revision

Viewing changes to doc/hints.mysql.txt

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2005-03-09 11:06:31 UTC
  • Revision ID: james.westby@ubuntu.com-20050309110631-8gvvn39q7tjz1kj6
Tags: upstream-0.5.14
ImportĀ upstreamĀ versionĀ 0.5.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Using the MySQL database with GNU Enterprise
 
2
============================================
 
3
 
 
4
 
 
5
Setting up the permissions on the database server
 
6
-------------------------------------------------
 
7
 
 
8
Enter the mysql database using the 'mysql' tool and create a privileged account
 
9
for your user:
 
10
 
 
11
  GRANT ALL PRIVILEGES ON *.* TO '<user>'@'%' IDENTIFIED BY '<pwd>';
 
12
  GRANT ALL PRIVILEGES ON *.* TO '<user>'@'localhost' IDENTIFIED BY '<pwd>';
 
13
 
 
14
(replace <user> with your username and <pwd> with your database password)
 
15
(the second grant will be needed for local access)
 
16
 
 
17
To automate access control, you can add a file "~/.my.cnf" with the following
 
18
contents:
 
19
 
 
20
  [mysqladmin]
 
21
  username = <user>
 
22
  password = <pwd>
 
23
 
 
24
  [mysql]
 
25
  username = <user>
 
26
  password = <pwd>
 
27
 
 
28
(replace <user> with your username and <pwd> with your database password)
 
29
Please make sure this file has mode 0600 :)