Help - Search - Members - Calendar
Full Version: Connecting To Mysql Database
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
md7dani
Hi,
Have problems with connecting to mysql database. Check my script:

<?php
// Connects to your Database
// we connect to 'easyfind.zxq.net and port 21
$link = mysql_connect('easyfind.zxq.net:21', 'easyfind_zxq', 'passwd');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>

easyfind.zxq.net=Host address, 'easyfind_zxq'=user name to server, 'passwd'=passwd to server

I get the fail mess: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'easyfind_zxq'@'192.168.1.1' (using password: YES) in /www/zxq.net/e/a/s/easyfind/htdocs/logg.php on line 4
Could not connect: Access denied for user 'easyfind_zxq'@'192.168.1.1' (using password: YES)


Dont understand this!! unsure.gif What's wrong???
Ed
MySQL uses a different username and password, one you must create within the database manager:
http://zxq.net/db_manager.jsp
md7dani
QUOTE(Ed @ Oct 14 2009, 12:33 AM) *
MySQL uses a different username and password, one you must create within the database manager:
http://zxq.net/db_manager.jsp


thanks,

Now when I have connection to Mysql, I've noticed problems with my user rights in Mysql:

I get: Error creating database: Access denied for user 'a4117621_dani'@'10.0.0.25' to database 'my_db' when I try to create a database in my Php script.


* Can I upload a database file on the server (The web host or Mysql server?) and use the INSERT mysql command on the existing database?



granit
QUOTE(Ed @ Oct 14 2009, 12:33 AM) *
MySQL uses a different username and password, one you must create within the database manager:
http://zxq.net/db_manager.jsp

I have same situation (my login and password wrong), but you link dont work !
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.