MySQL Forums
Forum List  »  Newbie

Re: open local database
Posted by: Claude Martin
Date: July 29, 2005 03:11PM

mysql does not work like that. if you want to have a database that is like a file then use some other database.
mysql is a service and it runns on a computer where it gives you access to the data that it stores in some files.
so the data you have in local.db must be loaded into mysql first.
usually you can use something like this:

mysql --user=USERNAME --pass=PASSWORD --host=SERVERHOST DATABASE < /PATH/local.db

so you just need to know the username, password, host (default is localhost if mysql is running on the computer that you are working at), the filepath, and the database which you must create first.
http://dev.mysql.com/doc/mysql/en/create-database.html

http://animalliberation.tk http://veganismus.ch
http://maqi.de http://tierrechtskochbuch.de

Options: ReplyQuote


Subject
Written By
Posted
July 29, 2005 01:48PM
Re: open local database
July 29, 2005 03:11PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.