Results 1 to 10 of 35

Thread: SQL problems

Hybrid View

  1. #1
    Retro Addict Administrator
    My location

    Burger Time Champion, Sonic Champion Harrison's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    16,015
    Blog Entries
    1
    Downloads
    6
    Uploads
    14
    The sql backup file needs to be on the same server as you wish to restore the database too.

    To restore the database you just need to run a mysql command in the shell

    Code:
    mysql -h[database server] -u[username] -p[password] databasename < backupfile.sql
    So if your database server is called db01.domain.co.uk, the database is called db1001, username is fred, password is cheese, and the database backup is called backup.sql, then the command would be:

    Code:
    mysql -hdb01.domain.co.uk -ufred -pcheese db1001 < backup.sql

    If you haven't played a classic game in years, it's never too late to start!


  2. #2
    RetroSteve! My location

    Stephen Coates's Avatar
    Join Date
    Mar 2003
    Location
    Rotherham
    Posts
    2,159
    Downloads
    0
    Uploads
    0
    Done that. Now I get this error:

    mysql -hlocalhost -uclockwis_phpBB -p******** clockwis_phpBB < public_html/dump/dump.sql

    ERROR 1045 (28000) at line 82321: Access denied for user 'clockwis_phpBB'@'gaius.asmallorange.com' (using password: YES)

    Any ideas as to what that means?

  3. #3
    Retro Addict Administrator
    My location

    Burger Time Champion, Sonic Champion Harrison's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    16,015
    Blog Entries
    1
    Downloads
    6
    Uploads
    14
    Are you sure you have the right username and password? Normally that error is because you have the root username or password wrong. It isn't always identical to the ftp access details.

    If you haven't played a classic game in years, it's never too late to start!


  4. #4
    RetroSteve! My location

    Stephen Coates's Avatar
    Join Date
    Mar 2003
    Location
    Rotherham
    Posts
    2,159
    Downloads
    0
    Uploads
    0
    I don't know anything about root user names.

    All I know is that the database name is clockwis_phpBB, the username for that database is clockwis_phpBB and that the password is ********. It does restore some of the database before the error appears.

  5. #5
    Competent My location

    FOL's Avatar
    Join Date
    Aug 2007
    Location
    Wales, UK
    Posts
    315
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Stephen Coates View Post
    I don't know anything about root user names.

    All I know is that the database name is clockwis_phpBB, the username for that database is clockwis_phpBB and that the password is ********. It does restore some of the database before the error appears.
    By root user, it means your main account user and pass. Thats why its saying incorrect, i used to get this a couple of times, as i kept forgetting to use my root account name and pass.
    On news of PSPUAE update on DCEMU came this reply, lol.

    [quote=djk21108;]this will sure make that horace guy happy....[/quote]

  6. #6
    RetroSteve! My location

    Stephen Coates's Avatar
    Join Date
    Mar 2003
    Location
    Rotherham
    Posts
    2,159
    Downloads
    0
    Uploads
    0
    Success at last!

    I have finally managed to fix all the errors thanks to you lot and the guys at the hosting companies technical support.

    The database now seems to work, and I now know to always make sure I have the correct settings when exporting a database.

  7. #7
    Retro Addict Administrator
    My location

    Burger Time Champion, Sonic Champion Harrison's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    16,015
    Blog Entries
    1
    Downloads
    6
    Uploads
    14
    Great to hear you finally got everything back and working again. It definitely took some work on your part to get it all to import.

    Most important thing. Have you now made another backup from the newly restored database?

    If you haven't played a classic game in years, it's never too late to start!


Similar Threads

  1. Problems with having photos processed
    By Stephen Coates in forum General Chat
    Replies: 11
    Last Post: 21st August 2007, 07:29
  2. MySpace problems
    By Submeg in forum General Chat
    Replies: 12
    Last Post: 12th February 2007, 23:30

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
  •  

Copyright classicamiga.com