Menu

Basic help

Help
2012-08-14
2013-02-07
  • Nobody/Anonymous

    When I try and import the initialization file, I get the following:

    Error
    SQL query:

    • PHPDraft Database Initialization Script
    • This script requires an empty database to be initialized, and then replace the name below with your database's name.
    • NOTE: Change this to whatever your database is. Make note if your host requires a prefixed name, like ACCOUNT_phpdraft (common on shared hosting)
      USE phpdraft;

    I know that my host does use a prefixed name, but I don't know where to make the change.

     
  • Matthew Orres

    Matthew Orres - 2012-08-20

    The issue may be the comments aren't properly formatted? What's the error that MySQL gives you? I just see the start of the init script, and not an error per se. Comments are all lines that begin with "- ", if you remove them and re-run the query what do you get?

     
  • David Fotheringham

    I am having the same problem… I'm not real good with php and databases, but here is the whole error message I received

    **SQL query:

    • PHPDraft Database Initialization Script
    • This script requires an empty database to be initialized, and then replace the name below with your database's name.
    • NOTE: Change this to whatever your database is. Make note if your host requires a prefixed name, like ACCOUNT_phpdraft (common on shared hosting)
      USE phpdraft;

    MySQL said:

    #1044 - Access denied for user 'davidtuc'@'localhost' to database 'phpdraft' **

     
  • David Fotheringham

    I figured it out!!!

    I had to edit the "database_initialize.sql" file in the sql directory. I had to change the line near the top that read "USE phpdraft;" to include my prefix name from my shared host.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.