Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35

Thread: SQL problems

  1. #11
    Retro Addict Administrator
    My location

    Burger Time Champion, Sonic Champion Harrison's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    16,645
    Blog Entries
    1
    Downloads
    6
    Uploads
    14
    Depends what access rights you have to the hosting server. Do you have SSH shell access? That is the best way. Otherwise you will be stuck with phpMyAdmin which as you have encountered can cause problems.

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


  2. #12
    ELITE v85rawdeal's Avatar
    Join Date
    May 2006
    Location
    Portsmouth, UK
    Posts
    1,333
    Downloads
    1
    Uploads
    0
    Would would be the best source materials and software to use in order to learn php/sql programming?

    I have an old website design I want to update, and that means getting a database system working on it... eventually. I would appreciate any advise or help given, thanks.
    This is not a signature

  3. #13
    Retro Addict Administrator
    My location

    Burger Time Champion, Sonic Champion Harrison's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    16,645
    Blog Entries
    1
    Downloads
    6
    Uploads
    14
    Many people tell everyone these days to just learn from websites and not to bother with books, but personally I find there is no better way than to have a book in front of you with some examples that you can take your time learning and experimenting with.

    I highly recommend the books published by Wrox. If you are completely new to PHP then I recommend you have a look at one titled "Beginning PHP". They also have some others such as "Beginning PHP, Apache, MySQL Web Development" which is also a good beginners guide, but as it lumps everything in together it doesn't quite cover as much on actual PHP and everything you can do with it. You can easily identify all books by Wrox as they are completely red with yellow writing.

    If you also need to brush up on your HTML, with XHTML and CSS, then I have always used "HTML, The Complete Reference" by Powell and published by McGrawHill.

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


  4. #14
    RetroSteve! My location

    Stephen Coates's Avatar
    Join Date
    Mar 2003
    Location
    Rotherham
    Posts
    2,185
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Harrison View Post
    Depends what access rights you have to the hosting server. Do you have SSH shell access? That is the best way. Otherwise you will be stuck with phpMyAdmin which as you have encountered can cause problems.
    I don't have shell access.

    Does that mean i am going to have to stick with phpMyAdmin?

  5. #15
    Competent My location

    FOL's Avatar
    Join Date
    Aug 2007
    Location
    Wales, UK
    Posts
    325
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Stephen Coates View Post
    Quote Originally Posted by Harrison View Post
    Depends what access rights you have to the hosting server. Do you have SSH shell access? That is the best way. Otherwise you will be stuck with phpMyAdmin which as you have encountered can cause problems.
    I don't have shell access.

    Does that mean i am going to have to stick with phpMyAdmin?
    I would believe so. I have to admit, I have never really bothered with shell, always used myphpadmin, and it has never failed me once, aslong as you select the correct export options.
    On news of PSPUAE update on DCEMU came this reply, lol.

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

  6. #16
    RetroSteve! My location

    Stephen Coates's Avatar
    Join Date
    Mar 2003
    Location
    Rotherham
    Posts
    2,185
    Downloads
    0
    Uploads
    0
    I'm pretty sure I did select the correct export options, but I will probably find out later that I didn't. I exported the database and then restored it using the same method last year and it worked perfectly, but I was following some instructions on a web page that I am no longer able to find.

  7. #17
    Retro Addict Administrator
    My location

    Burger Time Champion, Sonic Champion Harrison's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    16,645
    Blog Entries
    1
    Downloads
    6
    Uploads
    14
    You will be stuck with phpmyadmin without any shell access. If used correctly and the backup was exported correctly then it should restore perfectly well.

    Quote Originally Posted by FOL
    I have to admit, I have never really bothered with shell, always used myphpadmin, and it has never failed me once
    phpmyadmin is fine but you don't realise how slow it is until you have used a shell session. Directly being able to use Linux commands to backup and restore a database is very fast. For example if I backup the main classicamiga database via the shell you type the command, hit return, and the backup is sitting waiting for you on the server before you can blink. It also makes it possible to automate these backup commands using a cron job, so you don't even need to remember to do the backups.

    But the big speed advantage you will notice is in restoring a database. Using phpmyadmin this can take a long time as the program processes through all of the SQL commands from the backup, checking for any errors, and building the new database tables and then populates them with data. Via the shell you type the command to create the database and then restore from the backup and 2 seconds later the restored database is sitting there waiting to be used. The first time I did this I couldn't believe it had actually done anything and restored it. I had to load up the database in phpmyadmin just to check.

    Another great use for a shell session is file backups. Backing up a server file structure via ftp is a very slow and tedious job as you have to wait for each file to download before the next starts so it slows the whole process down. Using the shell it is easy to backup the whole file structure into a single gzipped file which you can then download. This has two big advantages. The file is compressed so the download is smaller, and as the whole file structure is contained within the one big file so you know you will not miss any files in the backup, and the file integrity is better.

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


  8. #18
    RetroSteve! My location

    Stephen Coates's Avatar
    Join Date
    Mar 2003
    Location
    Rotherham
    Posts
    2,185
    Downloads
    0
    Uploads
    0
    I added loads of \ to the ' and ", and now have this error:

    Code:
    MySQL said:  
    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Worldwide Developers Conference keynote address exclusively in QuickTime.\r\n\r\' at line 1
    And it is in this part of the database:
    Code:
    INSERT INTO `phpbb_posts_text` VALUES (3361, 'bcacceda26', 'Watch the Worldwide Developers Conference keynote address', 'Tune-in following the event on Monday afternoon June 23, 2003 to see Steve Jobs' Worldwide Developers Conference keynote address exclusively in QuickTime.\r\n\r\nFor optimal viewing experience, viewers should download QuickTime 6.3.\r\n\r\nhttp://stream.apple.akadns.net/');
    I'm guessing I'd just need another \ or similar, but thought I'd better check before I go and mess it up even more.

  9. #19
    Retro Addict Administrator
    My location

    Burger Time Champion, Sonic Champion Harrison's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    16,645
    Blog Entries
    1
    Downloads
    6
    Uploads
    14
    Looking at the code you posted you have Steve Jobs'. Did you escape the ' on the end of Jobs'?

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


  10. #20
    RetroSteve! My location

    Stephen Coates's Avatar
    Join Date
    Mar 2003
    Location
    Rotherham
    Posts
    2,185
    Downloads
    0
    Uploads
    0
    That was the problem. Sorted.

    Just got lots more to do now.

    BTW, how big is the classicamiga database?

Similar Threads

  1. Problems with having photos processed
    By Stephen Coates in forum General Chat
    Replies: 11
    Last Post: 21st August 2007, 08:29
  2. MySpace problems
    By Submeg in forum General Chat
    Replies: 12
    Last Post: 13th February 2007, 00: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