Trouble creating mySQL tables

I am running CF9 64bit on windows 7. I created the database on mySQL 5.6 server. I created the datasource, theough the CF Admin, for kalendar and it verified. I then tried using the following code to create 2 table, but I recevied an error that just says "Error!" when I tried running the script. I posted the script on  mySQL forums and was told the code ran fine. What am I not seeing?
<cfquery name="qCreateTable"  datasource="kalendar">
CREATE TABLE  tblkalendar (
  EventID varchar(100) NOT NULL,
  CategoryID int(10) NOT NULL,
  IsDeleted tinyint(1) NOT NULL default '0',
  IsPublished tinyint(1) NOT NULL default '0',
  IsFeatured tinyint(1) NOT NULL default '0',
  DateTimeCreated timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  StartDate datetime NOT NULL,
  EndDate datetime NOT NULL,
  StartTime varchar(50) default NULL,
  EndTime varchar(50) default NULL,
  ContactPhone varchar(50) default NULL,
  ContactName varchar(100) default NULL,
  ContactEmail varchar(50) default NULL,
  Title varchar(150) NOT NULL,
  Location varchar(150) default NULL,
  Teaser varchar(350) default NULL,
  ExternalURL varchar(500) character set utf8 default NULL,
  Description longtext NOT NULL,
  PRIMARY KEY  (EventID),
  KEY IX_tblKalendar (StartDate,EndDate),
  KEY FK_tblKalendar_tblKalendarCategories (CategoryID)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE  tblkalendarcategories (
  CategoryID int(10) NOT NULL auto_increment,
  CategoryName varchar(50) NOT NULL,
  CategoryBGColor varchar(7) NULL,
  CategoryTextColor varchar(7) NULL,
  PRIMARY KEY  (CategoryID)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
</cfquery>

you should rethink whether you need to create a database using java. personally i think it's a bad idea. your database should exist and the schema should be ready to go when your app starts. why do you think you need to create one?
%

Similar Messages

  • Failed to create MySQL tables. Installation aborted. BOE XI 3.1 Linux

    Tried to do a full install of BOE XI 3.1 Linux on Redhat 5 with at least the mimimum requirements and it goes through fine but then in the end errors out with "Failed to create MySQL tables. Installation aborted." Any ideas on what is causing this and how to fix it?

    Hello Fred,
    I recommend to post this query to the [BusinessObjects Enterprise Administration|BI Platform; forum.
    This forum is dedicated to topics related to administration and configuration of BusinessObjects Enterprise, BusinessObjects Edge, and Crystal Reports Server.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all BOE Administration queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Can't get JDeveloper/OC4J to auto-create MySQL table

    My EJB 3.0 based application is failing to create the MySQL table specified by the @TableGenerator annotation.
    Following are the details of my setup and application:
    System Setup:
    - JDeveloper 10.1.3.1.0
    - JDK 1.5.0_07
    - Ubuntu Linux kernel 2.6.15-27-k7
    - MySQL 5.0
    - MySQL ConnectorJ 3.1.13
    - Using the embedded OC4J server.
    I have done the following so far:
    1. Created a database in MySQL called, "test". Did not create any tables.
    2. Created a JDeveloper library whose classpath contains the MySQL ConnectorJ JAR file, and tested a database connection from JDeveloper successfully.
    3. Added the MySQL/JDeveloper library to my ejb project, "Test1/Model", and selected the database connection from the project properties EJB panel. The database connector is called, "SmashDB". Selecting the database connector on the EJB panel resulted in JDeveloper setting "SmashDBDS" as the default datasource.
    A JSF managed bean calls an EJB Session Bean, CustomerFacadeBean.persistEntity(Customer customer) with a Customer object as a parameter to save in the database. OC4J successfully connects to the MySQL "test" database, but fails when trying to access the ID_GENERATOR table, which is specified in an @TableGenerator annotation. The class-level annotations in the Customer entity are as follows:
    @Entity
    @NamedQuery(name = "Customer.findAll", query = "select o from Customer o")
    @TableGenerator(name = "BasicIDGen", table = "ID_GENERATOR", pkColumnName = "GEN_KEY",
    pkColumnValue = "CUSTOMER_ID", valueColumnName = "GEN_VALUE")
    public class Customer implements Serializable {
    private Long id;
    private Integer version;
    private String firstName;
    private String lastName;
    private String emailAddr;
    My persistence.xml file contains:
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
    <persistence-unit name="Model">
    <properties>
    <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
    </properties>
    </persistence-unit>
    </persistence>
    With the above definition for Customer and persistence.xml, I expected the ID_GENERATOR and CUSTOMER tables to be created automatically, but this doesn't seem to be happening.
    Instead, I get the following error message and stack trace:
    2006-09-27 12:25:29.564 ERROR J2EE EJB-08006 [CustomerFacade:public java.lang.Object facade.CustomerFacadeBean.persistEntity(java.lang.Object)] exception occurred during method invocation: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Table 'test.ID_GENERATOR' doesn't existError Code: 1146
    Call:UPDATE ID_GENERATOR SET GEN_VALUE = GEN_VALUE + ? WHERE GEN_KEY = ?
         bind => [50, CUSTOMER_ID]
    Query:DataModifyQuery(); nested exception is:
         Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Table 'test.ID_GENERATOR' doesn't existError Code: 1146
    Call:UPDATE ID_GENERATOR SET GEN_VALUE = GEN_VALUE + ? WHERE GEN_KEY = ?
         bind => [50, CUSTOMER_ID]
    etc.....
    Help would be greatly appreciated. I've gotten to this point, which appears to be one error away from success (I hope) but don't have a clue what this problem is caused by.
    Thanks,
    Rick Horowitz

    darby wrote:
    I can't get this to compile. help!
    You can not issue DDL in PL/SQL. You need to use dynamic SQL for that:
    create or replace
    PROCEDURE CREATE_STAGING_TABLES as
    BEGIN
      -- I CAN'T GET THIS TO WORK BUT I CAN COPY THESE LINES AND RUN THEM AND THEY WORK! WHATUP?
      DBMS_OUTPUT.PUT_LINE('Begin Create Import Tables');
      EXECUTE IMMEDIATE 'Create table FAC_STAGING_PROJECTS As select * from FAC_PROJECTS where 1=2';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PROJECTS add(ERROR_DESCRIPTION VARCHAR2(4000 CHAR))';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PROJECTS add(bImported NUMBER)';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PROJECTS add(dteImported DATE)';
      EXECUTE IMMEDIATE 'Create table FAC_STAGING_PURCHASE_ORDERS As select * from FAC_PURCHASE_ORDERS where 1=2';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PURCHASE_ORDERS add(ERROR_DESCRIPTION VARCHAR2(4000 CHAR))';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PURCHASE_ORDERS add(bImported NUMBER)';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PURCHASE_ORDERS add(dteImported DATE)';
      DBMS_OUTPUT.PUT_LINE('End Create Import Tables'); 
      EXCEPTION
       WHEN OTHERS THEN
         raise_application_error(-20022,substr(SQLERRM,1,255));
    END CREATE_STAGING_TABLES;SY.
    P.S. I am not questioning why do you need to create tables from a stored procedure.

  • MySQL tables

    Hi i would like to ask, there is any diffrent way for creating mySQL tables, rather than do it manualy on server, i mean using some software and then just export tables to the server.

    http://www.mysqlfront.de/
    Mysqlfront is some software you run on your own computer and it connects the mysql database. You can create the tables with a few clicks and some keystrokes. You dont need to write any sql if you dont want to.
    Also something to note is, the username and password you use to connect to the database must have access permissions to connect from your own computer. It's a bit tricky but when it's working its nice.
    Have fun! Think it's free too!
    p.s. I personally use phpmyadmin (http://www.phpmyadmin.net/home_page/), but this requires a webserver with php.

  • How to create a table in mysql tool kit

    Hello Sir/Madam,
    H                       
                                    How to create a table in mysql using the labview tool kit,,,I need the hyperlink to download this tool kit,
    Thanks and regards
    Jack 
    Jayavel

    quick search
    study and ask if further specific help needed

  • Trouble creating a database in MySQL using java

    Hi all,
    I am trying to create a program that connects to MySQL and can create databases, tables etc. I can connect to MySQL using the program but I cannot create a database (however if i create the database with the command line i can create tables in the database).
    When I try to create a database i get the error
    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'persondatabase'Here is the code:
    import java.sql.*;
    class Connect {
    public Connect() {
    public Connection connectToMySQL(String database_name) {
      Connection con = null;
      try {
       Class.forName("com.mysql.jdbc.Driver").newInstance();
       con = DriverManager.getConnection("jdbc:mysql:///persondatabase", "", "");
      catch(ClassNotFoundException e) { System.out.println(e); }
      catch(InstantiationException e) { System.out.println(e); }
      catch(SQLException e) { System.out.println(e); }
      finally {
       return con;
    public void createDatabase(String database_name) {
      Connection con = null;
      Statement stmt = null;
      try {
       con = connectToMySQL(null);  //connect to mysql but not to any one databases
       con.setAutoCommit(false);
       if(!con.isClosed())
        System.out.println("Connected to MySQL. Creating the Database " + database_name);
       String str = "CREATE DATABASE " + database_name;
       stmt = con.createStatement();
       stmt.executeUpdate(str);
       con.commit();
      catch (Exception e2) { }
      finally {
       try {
        stmt.close();
        con.close();
       }catch (Exception e3) { }
    public void createPersonDetailsTable(String database_name, String table_name) {
      Connection con = null;
      Statement stmt = null;
      try {
       con = connectToMySQL(database_name);
       con.setAutoCommit(false);
       if(!con.isClosed())
        System.out.println("Connected to " + database_name + " creating the table " + table_name);
       String str = "CREATE TABLE " + table_name + "(id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(25), last_name VARCHAR(25), address VARCHAR(40), suburb VARCHAR(20), state VARCHAR(3), post_code INT(1), contact_number INT(10), email_address VARCHAR(40));";
       stmt = con.createStatement();
       stmt.executeUpdate(str);
       con.commit();
      catch (Exception e2) { System.out.println(e2); }
      finally {
       try {
        stmt.close();
        con.close();
       }catch (Exception e3) {  }
    }I am wondering if anyone can see where im going wrong? I am currently connecting with an anon account to MySQL.
    Here is the program I am using to test the above:
    class ConnectionTester {
    public ConnectionTester() {
      Connect s = new Connect();
      s.createDatabase("PersonDatabase");  //this throws the error
      //s.createPersonDetailsTable("PersonDatabase", "PersonDetails");
    public static void main(String[] arg) {
      ConnectionTester start = new ConnectionTester();
    }

    you should rethink whether you need to create a database using java. personally i think it's a bad idea. your database should exist and the schema should be ready to go when your app starts. why do you think you need to create one?
    %

  • Create PHP form from MySQL table structure

    Hi folks
    Not directly DW related, but ....
    Anybody got any recommendations for a utility which would
    create a quick head
    start by creating the php/html code for a basic form using
    the field structure
    of a MySQL table ?
    Thanks for any suggestions.
    Ronnie MacGregor
    Scotland
    Ronnie at
    dBASEdeveloper
    dot co dot uk
    www.dBASEdeveloper.co.uk

    On Sun, 21 Dec 2008 15:08:30 +0000 (UTC)
    Joe Makowiec said :
    > On 21 Dec 2008 in macromedia.dreamweaver, Ronnie
    MacGregor wrote:
    >
    > > Anybody got any recommendations for a utility which
    would create a
    > > quick head start by creating the php/html code for
    a basic form
    > > using the field structure of a MySQL table ?
    > I haven't used it, but it looks like phpmyedit may do
    what you want:
    >
    >
    http://www.phpmyedit.org/
    Hi Joe
    Thanks for this ...
    phpMyEdit looks very good and very useful, and I'm playing
    with it to see just
    how configurable it proves to be.
    It looks good for general admin tasks etc. bet whether it
    proves suitable for
    end user (public) use remains to be seen.
    It is basically a class which generates the page code server
    side at runtime
    using the parameters you set in a calling script, but of
    course you can grab
    the source code for the generated page which may prove to
    satisfy my initial
    request.
    Anyway ... from what I've seen so far I could recommend that
    it is well worth
    some time exploring the possibilities.
    Cheers,
    Ronnie
    Ronnie MacGregor
    Scotland
    Ronnie at
    dBASEdeveloper
    dot co dot uk
    www.dBASEdeveloper.co.uk

  • Is it possible to create nested tables in MySql database?

    I am currently working on a project with my team and I'm in charge of designing the database. It's going to be a service delivery app that's going to have the name of several clients and their respective list services and cost of each service. The problem I'm having right now is finding a way to create separate tables, menus if you will, of their list of services offered since they all have different prices.
    Here's my question, can I create individual tables within a larger table (nested tables) using MySQL or would you recommend a different method?
    Please bear in min this is my first SQL project and I've had no prior experience with it.
    This topic first appeared in the Spiceworks Community

    It seems that the ability to link to a KB article within the WYSIWYG is broken.
    Spiceworks 7.4.00070
    IE 11 and Mozilla 38.0.5
    Can anyone else confirm?-Open the User Portal, edit any page and click the "Knowledge Base Article Link" button. -Chose a KB article and then publish your change.
    -Hover over the newly created KB link and/or click on the link.*screenshots are what I get.

  • How to create Mysql like table with LinkedList or LinkedHashMap

    Is it possible to create a class which can create tables like Mysql tables? Take the following table as an example,
    0, LastName0, FirstNam0, Ag0, Phon0
    1, LastName1, FirstNam1, Ag1, Phon1
    2, LastName2, FirstNam2, Ag2, Phon2
    It's very easy to create a table in MySql with the following data. Now what if I want to create a table in the memory, so I can retrieve or SORT it whichever way I want. I might want to sort it by lastname or by phone number.
    Is it possible to do that with LinkedList or LinkedHashMap?

    1. Create a class with the fields lastName, firstName, age, phone of appropriate types
    2. Create objects of this and put in some type of a collections (ArrayList, Vector)
    3. Sort it using Collections.sort. Use a Comparator that compares the fields of interest

  • How do I create a table in MySQL?

    Hello!
    I need to create a table in the database to be used by a simple process.
    How do I create it once I have the SQL ready (just two statements, CREATE TABLE and INSERT)?
    Thank you for any hints.
    Marcos

    Hi Marcos,
    There is no harm in creating table in Adobe schema itself.
    You can create any number of tables in Adobe Schema and access it, but dont not make any changes in the Adobe Tables.
    All the Best.
    Regards--
    Chalukya

  • Problem in inserting data into MySQL table

    Hi All,
    I have a table with just two fields FIRSTNAME and SECONDNAME in MySQL. I am accepting the First Name and Second Name in two text fields and then trying to insert them into the MySQL table. I have set the concurrency of the rowset to CONCUR_UPDATABLE and am using the code clip for Database row insert with the appropriate changes. When I run the application it doesnt give me any errors but the data is also not inserted in the table. Can someone pls help me out.
    Loneliness wins the race :-)

    This is my problem when inserting single row. What does it means ?
    MusicInsert: com.mysql.jdbc.NotUpdatable: Result Set not updatable.This result set must come from a statement that was created with a result set type of ResultSet.CONCUR_UPDATABLE, the query must select only one table, and must select all primary keys from that table. See the JDBC 2.1 API Specification, section 5.6 for more details

  • Exporting a MySQL table to Excel

    My users have asked for the ability to download a MySQL table to an Excel spreadsheet. Being an amateur at all this PHP stuff I googled around and found a script that is supposed to do this. It's failing with "Couldn't select database: Access denied for user 'holli10_tonybabb'@'%' to database '_admin' 1044"
    It seems to be picking up an extra "@%" from somewhere
    I used the same settings that I successfully used for a CRON backup job.. I'd really appreciate any insight you can suggest. The script is shown below,
    Thanks
    Tony
    <?php
    //EDIT YOUR MySQL Connection Info:
    $DB_Server = "209.200.244.80";  //your MySQL Server
    $DB_Username = "holli10_tonybabb";     //your MySQL User Name
    $DB_Password = "abcd1234";    //your MySQL Password
    $DB_DBName = "_admin";    //your MySQL Database Name
    $DB_TBLName = "volunteers";    //your MySQL Table Name
    //$DB_TBLName,  $DB_DBName, may also be commented out & passed to the browser
    //as parameters in a query string, so that this code may be easily reused for
    //any MySQL table or any MySQL database on your server
    //DEFINE SQL QUERY:
    //you can use just about ANY kind of select statement you want -
    //edit this to suit your needs!
    $sql = "Select * from $DB_TBLName";
    //Optional: print out title to top of Excel or Word file with Timestamp
    //for when file was generated:
    //set $Use_Titel = 1 to generate title, 0 not to use title
    $Use_Title = 1;
    //define date for title: EDIT this to create the time-format you need
    $now_date = date('m-d-Y H:i');
    //define title for .doc or .xls file: EDIT this if you want
    $title = "Dump For Table $DB_TBLName from Database $DB_DBName on $now_date";
    Leave the connection info below as it is:
    just edit the above.
    (Editing of code past this point recommended only for advanced users.)
    //create MySQL connection
    $Connect = @mysql_connect($DB_Server, $DB_Username, $DB_Password)
    or die("Couldn't connect to MySQL:<br>" . mysql_error() . "<br>" . mysql_errno());
    //select database
    $Db = @mysql_select_db($DB_DBName, $Connect)
    or die("Couldn't select database:<br>" . mysql_error(). "<br>" . mysql_errno());
    //execute query
    $result = @mysql_query($sql,$Connect)
    or die("Couldn't execute query:<br>" . mysql_error(). "<br>" . mysql_errno());
    //if this parameter is included ($w=1), file returned will be in word format ('.doc')
    //if parameter is not included, file returned will be in excel format ('.xls')
    if (isset($w) && ($w==1))
    $file_type = "msword";
    $file_ending = "doc";
    }else {
    $file_type = "vnd.ms-excel";
    $file_ending = "xls";
    //header info for browser: determines file type ('.doc' or '.xls')
    header("Content-Type: application/$file_type");
    header("Content-Disposition: attachment; filename=database_dump.$file_ending");
    header("Pragma: no-cache");
    header("Expires: 0");
    /* Start of Formatting for Word or Excel */
    if (isset($w) && ($w==1)) //check for $w again
    /* FORMATTING FOR WORD DOCUMENTS ('.doc')   */
    //create title with timestamp:
    if ($Use_Title == 1)
      echo("$title\n\n");
    //define separator (defines columns in excel & tabs in word)
    $sep = "\n"; //new line character
    while($row = mysql_fetch_row($result))
      //set_time_limit(60); // HaRa
      $schema_insert = "";
      for($j=0; $j<mysql_num_fields($result);$j++)
      //define field names
      $field_name = mysql_field_name($result,$j);
      //will show name of fields
      $schema_insert .= "$field_name:\t";
       if(!isset($row[$j])) {
        $schema_insert .= "NULL".$sep;
       elseif ($row[$j] != "") {
        $schema_insert .= "$row[$j]".$sep;
       else {
        $schema_insert .= "".$sep;
      $schema_insert = str_replace($sep."$", "", $schema_insert);
      $schema_insert .= "\t";
      print(trim($schema_insert));
      //end of each mysql row
      //creates line to separate data from each MySQL table row
      print "\n----------------------------------------------------\n";
    }else{
    /* FORMATTING FOR EXCEL DOCUMENTS ('.xls')   */
    //create title with timestamp:
    if ($Use_Title == 1)
      echo("$title\n");
    //define separator (defines columns in excel & tabs in word)
    $sep = "\t"; //tabbed character
    //start of printing column names as names of MySQL fields
    for ($i = 0; $i < mysql_num_fields($result); $i++)
      echo mysql_field_name($result,$i) . "\t";
    print("\n");
    //end of printing column names
    //start while loop to get data
    while($row = mysql_fetch_row($result))
      //set_time_limit(60); // HaRa
      $schema_insert = "";
      for($j=0; $j<mysql_num_fields($result);$j++)
       if(!isset($row[$j]))
        $schema_insert .= "NULL".$sep;
       elseif ($row[$j] != "")
        $schema_insert .= "$row[$j]".$sep;
       else
        $schema_insert .= "".$sep;
      $schema_insert = str_replace($sep."$", "", $schema_insert);
      //following fix suggested by Josue (thanks, Josue!)
      //this corrects output in excel when table fields contain \n or \r
      //these two characters are now replaced with a space
      $schema_insert = preg_replace("/\r\n|\n\r|\n|\r/", " ", $schema_insert);
      $schema_insert .= "\t";
      print(trim($schema_insert));
      print "\n";
    ?>
    <?php /*_____________________END___OF___THE___CODE______________________
    get more code from http://www.fundisom.com/phparadise/
    ___________________________________________________________________*/ ?>

    Never mind. The web hosting support people people told me I had my parameters wrong. It works fine now.

  • Is there a way to create a table of contents listing the order of tabs(sheets) in a Numbers document?

    I am planning my wedding and I have this huge Numbers document with 20+ tabs and I have plans to add many more tabs. Is there a way to create a table that has two columns: column 1= order that a tab appears, column 2=tab name? For example, my first three tabs are called Venues, Must Haves, and To Do List (in this order. I'd want this table of contents to be in the first sheet of the document, so it would be like sheet 1. Then I 'd want like the cells of column 1 to be like 2, 3, 4 (2nd, 3rd, 4th sheet in the document), and then the cells of column 2 to say Venues, Must Haves, and To Do List. I can make a tiny table of one cell in each sheet that I copied the name of the sheet and then do like a cell reference for column 2, but I'm having trouble w column 1.

    There is no referential value for the order of the sheets, just the sheet name. Only two things I can think of to suggest:
    Do the same thing for the first column that you do with the second (i.e. put a referential column in the same table as the Name and point to that).
    Seriously consider using a word processor program. Numbers is probably the wrong tool.

  • Error creating temporary table

    I got this error when creating forms with ADDT. I checked MySQL reserved words and I'm sure that's not my problem :(. Any help with this?
    Many thanks
    Florencia
    Error:
    Error interno.
    Developer Details:
    tNG_fields.getFakeRecordset:
    SQL error: Error creating temporary table:
    Incorrect table name 'T'
    SQL:
    CREATE TEMPORARY TABLE KT_fakeRS_20071031 (fecha_ing TEXT, fecha_eg TEXT, seguro TEXT, compania TEXT, CC TEXT, T.T TEXT, chapa TEXT, pintura TEXT, mecanica TEXT, repuestos TEXT, TT TEXT, cerrado TEXT, patente TEXT, id_rep TEXT) (FIELDS_FAKE_RS_ERROR)
    tNG Execution Trace - VIEW

    Hi Florencia,
    a column name like "T.T" will always lead to such errors, because characters like a dot (.) are forbidden, so to speak -- MySQL table and column names may generally only contain alphanumeric characters (0-9, a-z, A-Z), and the only allowed separator would be an underscore (_)
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How to upload MYSQL tables to Linux server

    I have been testing a PHP/MYSQL site on my own local apache
    server, now am ready to upload to internet. My hosting company is
    Papazilla.com which is an exact clone of GoDaddy.com.
    I used the GoDaddy/Papazilla interface to create 3 tables
    that my site needs.
    Now I need to import records into the tables.
    My tables were created on my computer using PHPmyAdmin. The
    tables appear on my computer at this path:
    C:\xampp\mysql\data\megazilladb
    Each table has 3 files as listed here:
    addurl.frm
    addurl.myd
    addurl.myi
    cats.frm
    cats.myd
    cats.myi
    sites.frm
    sites.myd
    sites.myi
    I think the myd extension has the data, but I'm not sure.
    GoDaddy/Papazilla says I can't just upload my complete
    tables, I first have to create empty tables on their site, then
    upload the data later.
    I went to the GoDaddy/Papazilla interface and created 3 empty
    tables named:
    cats
    sites
    addurl
    Then I went to the database management screen, selected the
    IMPORT tab, and clicked the BROWSE button.
    I browsed for the file "sites.myd"
    Then I clicked GO
    This brought up an error message:
    #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 ||x|||www.classicboat.com|antique Boats For Sale? etc,
    etc.
    The data after the ||x||| above is the info in the first
    field of the first record in the table.
    The error message goes on to list the rest of the fields in
    the record.
    When I called Papazilla to get help, they said I can only use
    the BROWSE button to upload files that end with the .SQL extension.
    Why don't my files have that extension?
    What can I try next to get the records uploaded into my
    tables?
    Thank you for your help

    .oO(lazybones2)
    >I have been testing a PHP/MYSQL site on my own local
    apache server, now am
    >ready to upload to internet. My hosting company is
    Papazilla.com which is an
    >exact clone of GoDaddy.com.
    >
    > I used the GoDaddy/Papazilla interface to create 3
    tables that my site needs.
    >
    > Now I need to import records into the tables.
    >
    > My tables were created on my computer using PHPmyAdmin.
    The tables appear on
    >my computer at this path:
    > C:\xampp\mysql\data\megazilladb
    In addition to David's reply - you should never touch the
    data directory
    of the DB directly. It's completely under the control of the
    server. You
    don't really know which data is stored where and how (it gets
    even more
    complicated with InnoDB tables for example) and actually you
    don't have
    to know that, because these directories are not meant for
    user access.
    So better think of the SQL server as a black box, keep your
    hands off
    its data directories and use SQL commands for all actions.
    Micha

Maybe you are looking for

  • Driver please! NVidia Quadro NVS 140M Windows 7 64-bit

    Installed Windows 7 RTM (Professional, x64) on my T61.  Surprise!  There's no driver for my NVidia Quadro NVS 140M, and I can't install the one that I downloaded from NVidia.  I'm stuck in 1024x768.  Ouch! What's the plan, Stan? If there are any driv

  • IC webclient framework profile

    Hi, while trying to create a framework profile, the procedure says to copy the xml code of the default framework profile to a Z_ profile, while trying to do say, instructions say open the default to copy the xml code, but i am not able to see the XML

  • How can I let the web to track my location?

    Just wanted to be tracked..

  • I downloaded iOS 7 but it won't verify

    I downloaded it a while ago, then did not use my iPad. Now it won't verify because it says I am no longer connected to the Internet when obviously I am writing this. How do I fix this?

  • Can't login to business Catalyst via Dreamweaver

    I have seen this question asked a few times on the forums however I have not seen a solution that works, I did see the one about deactivating and removing that particluar dm file, and then reactivating however that didn't fix the problem.  I am able