Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The MySQL commands listed below can be run within the mysql program, which may be invoked as follows:panel

Code Block
languagenone

mysql \-u root \-p

Create the database. For example, to create a database named "fedora3", enter:

Panel

CREATE DATABASE fedora3;

Set username, password and permissions for the database. For example, to set the permissions for user fedoraAdmin with password fedoraAdmin on database "fedora3", enter:
Panel

GRANT ALL ON fedora3.* TO fedoraAdmin@localhost IDENTIFIED BY 'fedoraAdmin';
GRANT ALL ON fedora3.* TO fedoraAdmin@'%' IDENTIFIED BY 'fedoraAdmin';

MySQL 4.1.x users must also specify the default character set for the Fedora database as "utf8" and the default collation as "utf8_bin". For example, to set the default character set and collation on a database named "fedora3", enter:

...