+ Reply to Thread
Results 1 to 4 of 4

Thread: How can i upload mysql database on my site?

  1. #1
    fifaros is offline x10Hosting Member fifaros is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    2

    Question How can i upload mysql database on my site?

    I tried using phpMyadin but it says i dont have privileges to create a database?

    Here's the message i get.I suppose its a common problem but i m kinda newby in this field.


    --
    -- Database: `db_viso`
    --
    CREATE DATABASE `db_viso` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;


    ErrorMessage:

    #1044 - Access denied for user 'fifaros'@'localhost' to database 'db_viso'

    Can i get a little help here pls?
    Thx in advance.

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: How can i upload mysql database on my site?

    You must use the MySQL Databases tool to create users and databases, as well as removing and adding permissions. I recommend using the MySQL Database Wizard tool.

    Last edited by garrettroyce; 06-14-2009 at 07:43 PM.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    fifaros is offline x10Hosting Member fifaros is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    2

    Smile Re: How can i upload mysql database on my site?

    Well i did use MySql Databases to do that,i could create db and user but could not import my own db cause i didnt have privileges to create a db.

    I saw a similar thread on this forum and remembered something a friend of me told
    me the other day and i figured it out.Its pretty simple actually.

    Using MySqlDatabases tool create a database with the same name as your own database.Create a user with all privileges and link your database to that user.

    Then you just have to open your own "database.sql" file and remove these 2 lines from the code before importing it:

    CREATE DATABASE `database` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
    USE `database`;


    By doing that,it wont try to create a database which you still dont have priviliges to do.It will import your database overwriting the one you created through MySqlDatabases before.

    That's all.It worked just fine for me.
    Last edited by fifaros; 06-14-2009 at 08:15 PM.

  4. #4
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: How can i upload mysql database on my site?

    Great! Let me know if you need anything else
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

+ Reply to Thread

Similar Threads

  1. SITE: Uable to find MySQL Database
    By XGI Admin in forum Free Hosting
    Replies: 2
    Last Post: 08-15-2008, 04:09 PM
  2. Mysql database...
    By Brash911 in forum Free Hosting
    Replies: 3
    Last Post: 07-31-2008, 01:13 PM
  3. Remote Access to MySQL database
    By donward in forum Free Hosting
    Replies: 4
    Last Post: 04-02-2008, 07:07 PM
  4. MySQL Issues Here
    By Corey in forum Service Alerts
    Replies: 304
    Last Post: 01-06-2008, 09:10 PM
  5. MYSQL Database - Need to remote access
    By auspiex in forum Free Hosting
    Replies: 1
    Last Post: 09-04-2007, 06:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers