Quote:
Not exactly sure if theres a way to souce both DB and alternate to and from them as i just followed the guide that comes withe the 5.2 release, regarding sourceing in.
|
Yes, you can. All you have to do is go to cmd prompt and type
mysql -u root mysql
Press enter. Logs you in as main user with all rights. Then
CREATE DATABASE eq2;
Press enter. Creates a second db for you to use. Then
USE eq2;
Press enter. Loads the new db. Then
source <your new db.sql>;
Press enter. Loads all the tables and stuff to your new db. Optional
source <update.sql>;
Press enter. Loads the updates if you need them <for instance if you are using 0.5.3......
Now you have to edit your db.ini file. Where it says eq just change it to match whatever you named your new db. In this case eq2. You are all set with your alternative db. So you can use as many different db's as you like. If you want to go back to the first one you had, just do the same thing only leave out the create database command and source... just do the use command and change your db.ini file to reflect this..... viola'
Also, if, when you did the GRANT command you didnt grant privileges to *.*, but instead just to eq.* then you will have to use the command again but this time use eq2.*. for example you might use this:
GRANT ALL PRIVILEGES ON eq2.* TO test@localhost IDENTIFIED BY 'test' WITH GRANT OPTION;
Where the first test is your username and the second test is your password.