+ Reply to Thread
Results 1 to 2 of 2

Thread: Help me with Error
      
   

  1. #1
    Antonio878's Avatar
    Antonio878 is offline Master Sergeant
    Join Date
    Sep 2007
    Posts
    68

    Question Help me with Error

    I want to create a database from my site, and i have the php code for it.
    PHP Code:
    <?php$con mysql_connect("localhost","***","****");
    if (!
    $con)  {  die('Could not connect: ' mysql_error());
      }if (
    mysql_query("CREATE DATABASE ***_officer",$con))
      {  
    echo 
    "Database created";
      }
    else 
     {
      echo 
    "Error creating database: " mysql_error();
      }
    mysql_close($con);
    ?>
    everytime i try and create the database by using this code, it always saysError creating database: Access denied for user '***'@'localhost' to database 'oieieais_officer'Account Id (server name) Voda22 can anyone help me, please?

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,055

    Default Re: Help me with Error

    In VH you can NOT create a database from script. You need to create the Database through your CP. After that you can create the necessary tables using a script.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49