krivo si kreirao bazu na localhostu pa ti ne da pristup bazi, kad kreiraš bazu u c:/mysql/bin (ili gdje ti je već mysql) možeš kreirat sa lozinkom i bez lozinke i tako onda moraš podešavati svuda inače se nikad nećeš spojit, evo ti iz Macromedije Help za to:
To create the sample MySQL database:
Copy the SQL script file, insert.sql, to an appropriate folder on the computer that has MySQL installed.
If you installed Dreamweaver to its default location, the path to the script file is as follows:
If the computer running MySQL is a Windows computer, copy the insert.sql script to MySql\Bin. If the computer running MySQL is a Macintosh, copy the insert.sql script to your Documents folder in your home folder.
On the computer that has MySQL installed, open a command prompt window (Windows) or a Terminal window (Macintosh).
In Windows, you can open the command prompt by selecting Start > Programs > Command Prompt or Start > Programs > Accessories > Command Prompt.
On the Macintosh, you can open a Terminal window by going to the Applications folder, opening the Utilities folder, and double-clicking Terminal.
(Windows only) Change to the mysql\bin directory by entering the following commands at the command prompt:
cd \
cd mysql\bin
Note: On the Macintosh, you should be able to run mysql from any directory; it should have been added to your path during installation of MySQL. If the following step doesn’t work on the Macintosh, though, try typing /usr/local/bin/mysql instead of mysql.
Start the MySQL client by entering the following command:
mysql -uUser -pPassword
For example, if your MySQL user name (also known as an account name) and password are Tara and Telly3, then enter the following command:
mysql -uKorsnik -pLozinka
If you don’t have a password, omit the -p argument as follows:
mysql -uKorisnik
If you didn’t define a user name while configuring your MySQL installation, enter root as the user name, as follows:
mysql -uroot
The MySQL client’s command prompt appears, as follows:
mysql>
Create a new database by entering the following command at the MySQL prompt:
mysql>CREATE DATABASE Nešto;
MySQL creates a new database, but it doesn’t contain any tables or records yet.
Log out of the MySQL client by entering the following command at the prompt:
mysql>quit;
At the system command prompt, populate the new TrioMotors database in MySQL.
In Windows, use the following command:
mysql -uUser -pPassword Ime baze < naziv_datoteke.sql
On the Macintosh, use the following command:
mysql -uUser -pPassword TrioMotors < ~/Documents/insert.sql