syntax error

Discussion in 'Troubleshooting' started by Nikki, Feb 25, 2004.

  1. Nikki

    Nikki Guest

    Hi!

    I downloaded a free version of aMember off of your website. I've managed to install it on my own domain as a test (the web manager is cpanel), however, I've been having difficulty installing it on another domain. It has to be installed through phpMyAdmin, the only problem is, it gives me the following error:
    --
    MySQL said: You have an error in your SQL syntax near '@amember@access_log ( log_id int(11) NOT NULL auto_increment, member_id int(11' at line 1
    --
  2. pilot

    pilot New Member

    Joined:
    May 24, 2003
    Messages:
    178
    This is an error in mysql: If you want to install the database through
    phpMyAdmin you will have to alter the database as Alex has stated at the start of the SQL file as follows:

    # WARNING! If you want to apply it manually
    # REPLACE @DB_MYSQL_PREFIX to desired value -
    # possible empty string

    This means that:

    CREATE TABLE @DB_MYSQL_PREFIX@access_log

    will become:

    CREATE TABLE amember_access_log

    amember_ is the prefix.
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Nikki, sorry but why don't use setup.php to create tables for you? It is by default!
  4. pilot

    pilot New Member

    Joined:
    May 24, 2003
    Messages:
    178
    I create the database in phpMyAdmin with my hosting panel, and use the installer to populate the fields ... just fill in in the info that the installer asks ie localhost:databasename:username:password and there is nothing else to do.

Share This Page