Jump to content

zeusthegreat

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Everything posted by zeusthegreat

  1. just created another database and applied username and password to it and it worked, so does this mean that your username and password are stored on a mysql server.
  2. my wampserver version is WampServer2.2a-x64 i tryed all yesterday to get my mysql_connect.php but i kept on getting a error that indicates that the username or password is incorrect ! ) Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'talos342c'@'localhost' (using password: YES) in C:\wamp\www\myNewweb\storescripts\connect_to_mysql.php on line 19 Call Stack # Time Memory Function Location 1 0.0021 666856 {main}( ) ..\mysql_quicktest.php:0 2 0.0037 672280 require( 'C:\wamp\www\myNewweb\storescripts\connect_to_mysql.php' ) ..\mysql_quicktest.php:3 3 0.0038 673248 mysql_connect ( ) ..\connect_to_mysql.php:19 could not connect to mysql no i have tryed typing in my password and username in add a user a nd giving the user all privileges the server actually delievers the local host page but all i keep getting now is the above error i tryed since to in mysql console window - setting a password for the root folder and now instead of passord :yes i get password no i did flush all privileges when i had set my password in mysql console
  3. sorry for being ignorant download wamp server stack install it after installation name db add new user is this where i am going wrong adding a new user what section of wamp server do you put your username and password in as i cannot see where you put your db credentials in phpmyadmin as i am doing this database on my local machine i will carry on with what i do add a new user username and password written down create user then after that i try to recieve my connection message through my browser and i get the message that indicates that my password is incorrect. tryed uninstalling and reinstalling to no resolve
  4. have tryed it but it gives the same result ( ! ) Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'talos342c'@'localhost' (using password: YES) in C:\wamp\www\myNewweb\storescripts\connect_to_mysql.php on line 19 Call Stack # Time Memory Function Location 1 0.0052 666856 {main}( ) ..\mysql_quicktest.php:0 2 0.0060 672552 require( 'C:\wamp\www\myNewweb\storescripts\connect_to_mysql.php' ) ..\mysql_quicktest.php:6 3 0.0060 673520 mysql_connect ( ) ..\connect_to_mysql.php:19 could not connect to mysql have looked into this error and it saya that it is usually username or password errors
  5. all i am doing is producing a database on my local machine i have named my database in phpmyadmin and linked (created) a user for it in the privaleges section also highlighting a password for the user then i have a connect_to_mysql.php script <?php /* 1: "die()" will exit the script and show an error statement if something goes wrong with the "connect" or "select" functions. 2: A "mysql_connect()" error usually means your username/password are wrong 3: A "mysql_select_db()" error usually means the database does not exist. */ // Place db host name. Sometimes "localhost" but // sometimes looks like this: >> ???mysql??.someserver.net $db_host = "localhost"; // Place the username for the MySQL database here $db_username = "talos342c"; // Place the password for the MySQL database here $db_pass = "dollybrom1"; // Place the name for the MySQL database here $db_name = "mydbstore"; // Run the actual connection here mysql_connect("$db_host","$db_username","$db_pass") or die ("could not connect to mysql"); mysql_select_db("$db_name") or die ("no database"); ?> then i have a mysql_quicktest.php <?php // Connect to the file above here require "connect_to_mysql.php"; echo "<h1>Success in database connection! Happy Coding!</h1>"; // if no success the script would have died before this success message ?> and they are saved in a file called storescripts both of the above files so i then proceed to try to seeif i can get a connection http//localhost/myNewweb/storescripts/mysql_quicktest.php ! ) Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'talos342c'@'localhost' (using password: YES) in C:\wamp\www\myNewweb\storescripts\connect_to_mysql.php on line 19 Call Stack # Time Memory Function Location 1 0.0021 666856 {main}( ) ..\mysql_quicktest.php:0 2 0.0037 672280 require( 'C:\wamp\www\myNewweb\storescripts\connect_to_mysql.php' ) ..\mysql_quicktest.php:3 3 0.0038 673248 mysql_connect ( ) ..\connect_to_mysql.php:19 could not connect to mysql
  6. now i am getting this error ( ! ) Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'talos342c'@'localhost' (using password: YES) in C:\wamp\www\myNewweb\storescripts\connect_to_mysql.php on line 19 Call Stack # Time Memory Function Location 1 0.0008 380440 {main}( ) ..\index.php:0 2 0.0012 384880 include( 'C:\wamp\www\myNewweb\storescripts\connect_to_mysql.php' ) ..\index.php:11 3 0.0012 385528 mysql_connect ( ) ..\connect_to_mysql.php:19
  7. whenever i try to view the product page through my testing server it says Data to render this page is missing. and when i try to go to the product page through the index page it says That item does not exist. [attachment deleted by admin]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.