Exporting MySQL DB w/ PHPAdmin...

Hi,
Not really a CF question but I thought somene might know: I'm
trying to migrate a fairly large DB to a new server, and can't
figure out how to get the whole DB exported to a .sql file. The
problematic table has around 158,000 records, and the most I can
seem to get out of PHPMyadmin is around 150,000. I'm using bigdump
to import them and that seems to work ok, the problem is I can't
get a full export.
Anyone else had this problem? Any easy solution??
Thanks!

i have stopped sing phpmyadmin since i got my own vps and
have sqlyog
installed on it, but before that i used it a lot...
phpmyadmin has a max file size limit of 2MB. it will not save
your db
dump if the resulting file exceeds this limit. iirc, there
was a tweak
for this, since i remember making db dumps of 20+MB with no
problems and
importing them, too, but i can't recall now what it involved.
plus, if
you are on a shared host, your host will probably NOT make
the necessary
tweaks for you anyway...
so, to overcome this limit, do NOT save the dump as file.
instead, make
phpmyadmin output the dump on screen, then copy the text on
screen and
save it as .sql file.
if you can then use that file to import the db on your server
- good.
but if not, you will instead have to paste the dump generated
by
phpmyadmin as text into the appropriate window on import db
page.
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Similar Messages

  • Import / Export MySQL database in SQL Developer

    Hello,
    I have version 3.1.2.704 of SQL Developer Data Modeler and version 3.2.09 of SQL Developer installed.
    When I´m adding a new connection in SQL Developer, I can choose the MySQL tab an create a connection to a MySQL database.
    The connection test was successful and I can see all tables.
    I use the same JDBC driver for SQL Developer and SQL Developer Data Modeler (mysql-connector-java-5.0.4-bin.jar).
    But there are two problems.
    1. First there is an problem when I want to import from a MySQL database (SQL Developer -> File -> DataModeler -> Import -> DataDictionary).
    After choosing the MySQL connection and pressing the next button an error occurs: CONNECTION_TYPE
    What is the reason?
    2. In SQL Developer Data Modeler I have not the CONNECTION_TYPE problem. But when I want to export DDL, there is no MySQL type selectable, although there is working connection to the MySQL Database. It´s the same in SQL Developer.
    What is the reason?

    Hi,
    Please be aware that a separate forum for SQL Developer Data Modeler is available:
    SQL Developer Data Modeler
    You will likely get a more rapid response if you mark this thread as answered and re-post your question over there.
    Regards,
    Gary

  • Import / Export MySQL database in SQL Developer Data Modeler

    Hello,
    I have version 3.1.2.704 of SQL Developer Data Modeler and version 3.2.09 of SQL Developer installed.
    When I´m adding a new connection in SQL Developer, I can choose the MySQL tab an create a connection to a MySQL database.
    The connection test was successful and I can see all tables.
    I use the same JDBC driver for SQL Developer and SQL Developer Data Modeler (mysql-connector-java-5.0.4-bin.jar).
    But there are two problems.
    1. First there is an problem when I want to import from a MySQL database (SQL Developer -> File -> DataModeler -> Import -> DataDictionary).
    After choosing the MySQL connection and pressing the next button an error occurs: CONNECTION_TYPE
    What is the reason?
    2. In SQL Developer Data Modeler I have not the CONNECTION_TYPE problem. But when I want to export DDL, there is no MySQL type selectable, although there is working connection to the MySQL Database. It´s the same in SQL Developer.
    What is the reason?

    Hi,
    Data Modeler does not explicitly support import from MySQL databases, although you can use a JDBC connection to do this.
    Philip described how to set this up in forum message How to connect mySQL for reverve engineering
    There is no MySQL tab in Data Modeler - you should use "JDBC-ODBC Bridge" - "other third party Driver".
    Set URL like : jdbc:mysql://localhost:3306/database_name
    driver Class: com.mysql.jdbc.DriverAlso Data Modeler does not support generation of DDL for MySQL.
    David

  • How to export MySql queryBrowser to oracle's .sql file

    Hi folks:
    I was trying to export result set from MySql query browser to Oracle. I could able to do
    File->Export Result Set-> Excel format...
    What I am trying to get is .sql file so that I can run it as a script in my oracle db. Is there any way we can get .sql file with inserts and delimeters ....?
    Did you guys get my question.?
    Please throw some light on this....
    Could be very appreciable ....
    Thanks
    Sudhir Naidu

    As already pointed out the implementation is bad.
    You should have:
    USERS ( ID )
    GROUPS ( ID )
    USER_GROUPS( USER_ID,GROUP_ID )The reason for not using the CSV list is that not only is it hard to write efficient SQL against denormalised structures, but it is very difficult to constrain your data properly.
    But anyhow, Oracle 10g has a MEMBER OF function. Too bad you're on 9i. You say "new task", is the platform still up for decision?
    You could normalise on the fly like this
    e.g.
    SELECT t.GROUP_ID
          ,EXTRACTVALUE (csv_to_tab.COLUMN_VALUE, 'user')
           user_id
      FROM t_user t
          ,TABLE (XMLSEQUENCE (EXTRACT (XMLTYPE
    (   '<set><user>'|| REPLACE
    (t.users,',','</user><user>' )                       
    || '</user></set>'), '/set/*'))) csv_to_tab

  • Exporting MySQL db content to a csv file

    Hello,
    I have written the below script to read from a MySQL db and then create a csv file and insert data into the file, however i am facing a issue that each coloun data is represented in a new row. Please help.
    [void][system.reflection.Assembly]::LoadFrom("C:\Program Files (x86)\MySQL\MySQL Connector Net 6.2.5\Assemblies\MySql.Data.dll")
    $myconnection = New-Object MySql.Data.MySqlClient.MySqlConnection
    $myconnection.ConnectionString = "server=19x.8x.16x.217;user id=xxxx;password=xxxx;database=inventairesv2;pooling=false"
    $myconnection.Open()
    $mycommand = New-Object MySql.Data.MySqlClient.MySqlCommand
    $mycommand.Connection = $myconnection
    $mycommand.CommandText = "SELECT * FROM legacy2"
    $myreader = $mycommand.ExecuteReader()
    while
    ($myreader.Read()) {
      for ($i= 0; $i -lt $myreader.FieldCount; $i++) {
        write-output $myreader.GetValue($i).ToString()|Out-File "R:\PBOX\legacy.csv" -Append
    Output from the script :
    Weblogic
    9
    01/11/2011 00:00:00
    01/11/2011 00:00:00
    2
    NGC
    domaine_ngca
    Retired
    Weblogic-9.2.2
    1
    Développement
    dngc01
    Weblogic
    9
    01/11/2011 00:00:00
    01/11/2011 00:00:00
    2
    NGC
    domaine_ngca
    Retired
    Weblogic-9.2.2
    2
    Développement
    dngc01
    Weblogic
    9
    01/11/2011 00:00:00
    01/11/2011 00:00:00
    2
    NGC
    domaine_ngca
    Retired
    Weblogic-9.2.2
    3
    Développement
    dngc01
    Weblogic
    9
    Output desired:
    Weblogic;9;01/11/2011 00:00:00;01/11/2011 00:00:00;2;NGC;domaine_ngca;Retired;Weblogic-9.2.2;1;Développement;dngc01
    Weblogic;9;01/11/2011 00:00:00;01/11/2011 00:00:00;2;NGC;domaine_ngca;Retired;Weblogic-9.2.2;2;Développement;dngc01

    Hello Brian,
    I have tried the above script as well, but still getting the same message and also in the data exported out i see that the Date/Time field now has inconsistent values shown below.
    I still get the Exception Message:
    ========================================================================
    Exception calling "GetValue" with "1" argument(s): "Unable to convert MySQL dat
    e/time value to System.DateTime"
    At R:\CIT-uCMDB\scenario_CIT_SG_UCMDB10_DEV\PBOX\P-Script\PBOX.ps1:14 char:34
    +      $Value =  $myreader.GetValue <<<< ($i).ToString()
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : DotNetMethodException
    Exception calling "Read" with "0" argument(s): "Fatal error encountered during
    data read."
    At R:\CIT-uCMDB\scenario_CIT_SG_UCMDB10_DEV\PBOX\P-Script\PBOX.ps1:10 char:22
    + while ($myreader.Read <<<< ())
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : DotNetMethodException
    =====================================================================
    Informatica
    8
    31/12/2011 00:00:00
    31/12/2011 00:00:00
    2
    BOX
    REP_SOL10_HOF
    Retired
    Informatica 8.6.1
    2682
    Homologation
    hmid01
    Weblogic
    10
    1/3/2013 0:00
    2
    ERT
    domaineERT
    Retired
    Weblogic-10.1
    2690
    Homologation
    pwlslx11,pwlslx12,pwlslx13,pwlslx14
    Weblogic
    10
    1/3/2013 0:00
    2
    ERT
    domaineERT
    Retired
    Weblogic-10.1
    2691
    Homologation
    hertlx01
    Apache httpd Server
    2.2.8
    2.2.8
    2.2.8
    4
    ERT
    domaineERT
    Supported
    Apache http Server 2.2.8
    2692
    Homologation
    hertlx01
    Apache httpd Server
    2.2.8
    2.2.8
    2.2.8
    4
    CLT
    domaineCLT
    Supported
    Apache http Server 2.2.8
    2694
    Développement
    dcltlx01

  • Export MySql into CVS file

    hi guys, please help
    I need to move my domain to other server, I have MySql db, what is the best way to export it and how, code example or unix commands would be apprecieated.
    thanx

    If you have HTTP server with PHP support, you can put phpMyAdmin and use it to export to cvs ...
    simply download phpMyAdmin (http://www.phpmyadmin.net/index.php?dl=3), modify config.inc (user / pswd and database name) and upload it on you documentRoot.
    good luck !

  • How to create/ export Mysql Bean to be use in DreamWeaver 8

    If possible, I want to generate JSP pages in NetBeans5.5 containing forms and beans for a database and then export the whole thing to be use in Dreamweaver 8.
    Please advice

    Try the following forum (about JSP technology)
    http://forum.java.sun.com/forum.jspa?forumID=45

  • Exporting MySQL table data to a file in location of choice

    Hi everyone,
    As I'm still not all too familiar with JDBC and MySQL, I'm running into a problem and I was hoping somebody could give me a push in the right direction. What I want to do is create a Java tool which performs a query on a database, to then return the results in a file on the user's computer, not on the mySQL server itself. I know that you can easily create a file using the
    SELECT * INTO OUTFILE
    command, but this creates a file on the MySQL server, not on the computer of the person running the Java tool. Basically I would like the program to have a 'browse' button, with which I can specify where the file should be saved. Can anybody tell me how I could possibly accomplish this? I was guessing something with the JFileChooser would be an option, but can't seem to find exactly how to code it.
    Thanks a lot for any input in advance, your help is greatly appreciated!
    best regards

    Thanks for your swift replies!
    I'm sorry I had the context mistaken, I thought as it was handling MySQL data, it would be related to the JDBC theme. But your answer has definitely helped me along, thanks for that! I will look at that tutorial you linked through... Am I right in assuming that I can run the query, save the results in the ResultSet rs variable and then pass this to the file opened/created by JFileChooser?
    Thanks again for your time!

  • Exporting mysql database

    Hi guys,
    I am using the following sql statement
    SELECT * INTO OUTFILE "E:\Main\positiveblue.sql" FIELDS TERMINATED BY ',' FROM positiveblue
    Here is my code
    public void exportTables(String table, String dir)
        String exportSQL = "SELECT * INTO OUTFILE \"" + dir + "\" FIELDS TERMINATED BY ',' FROM " + table;
        System.out.println(exportSQL);
        try
          executeQuery(_Con,exportSQL);
        catch (Exception e)
          System.out.println("Error exporting - " + e);
      }but it saves the file to the E:drive and names it "Mainpositiveblue.sql"
    has anybody got any idea why it is doing this?

    sorry, I get what you mean now,
    I did the follwoing
    this.exportTables("positiveblue", "E:\\\\Main\\\\positiveblue.sql");and it works now.
    I guess you have to escape the backslash for java and then again for the sql statement.
    thanks for your help

  • Export Data as CSV - PHP/MySQL

    Hi, is it possible to export MySQL data as CSV using developer toolbox? My PHP knowledge is very basic so please be gentle.
    Thanks
    Bert

    Hi Bert,
    no, ADDT doesn´t provide this feature, but there are quite some other extensions out there to export results from a recordset as CSV -- guess you´ll find some listed in the Dreamweaver Exchange.
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Mysql 4 not supported

    has anyone been able to successfully export mysql 4 database to oracle, the mysqldump command line option has option for oracle however it doesn't seem to work when I run the import into oracle, I have been exporting the data as ascii and removing most of the mysql commands, just leavings the update table/and basic insert statements.

    Can you send me more specifics on the Oracle errors you hit when you did an import.
    Thanks
    Aalok

  • Import Excel to MySQL using PHP

    Does anyone know the coding for if you have a excel document
    that has the same headers as the mysql table, however, you wish to
    import the data in excel inside your mysql table. How is this done
    through PHP. I've seen a lot of coding to do the reverse by
    exporting mysql data into excel. What I need is the reverse, is
    this possible?
    Thank you,
    AdonaiEchad

    Does anybody have an answer.

  • Hosting company does not support SQL query with OUTFILE clause

    From my mysql database, I want to allow the user to run a query and produce a csv / text file of our membership database.   Unfortunately,  I just found out my hosting company does not support the SQL query with OUTFILE clause for MySQL database.
    Are there any other options available to produce a file besides me running the query in phpadmin and making the file available to users.
    Thanks.  George

    Maybe this external Export Mysql data to CSV - PHP tutorial will be of help
    Cheers,
    Günter

  • How to export Oracle tables and data to mySQL

    Hi,
    I am new to Oracle.. and would appreciate all help on the issues below.
    Currently, we have Oracle8i on HP-UX, and Oracle8i on IBM-AIX. We would like to be ble to browse the information on the web, thus, a decision to use mySQL as the web database was made. In order to achieve the above, we need to perform the following:
    1) Export Oracle tables to mySQL, from both the HP-UX and IBM-AIX machines.
    2) Include an additional column to the tables that need to be exported from Oracle to mySQL.
    3) Implement the export as a daily extraction that will run at a certain time of the day.
    How may I achieve the above?
    I have just installed the Oracle Enterprise Manager... will this have any help to the above???
    Appreciate all help given... greatly appreciated!
    Thanks and Brgds,
    Alicia

    I'd first make sure you really need to create a separate database just for making the data available to the web. The web application you create could just as well query the existing Oracle databases. You don't necessarily have to create a separate database just to display info over the web.
    Secondly, if you still want to create a separate database, I'd also question the use of mySQL. In my opinion, mySQL is not a relational database. It acts like a relational database; you can query it via SQL. But because of all the features which mySQL says it does not support yet, I don't consider it to be a true RDBMS. This may not be an issue in your case since you're using it just for read access. Still, I'd take a long look at the list of feature mySQL does not support and make sure you can live with those limitations.
    Also, if you create a separate database for the web app and use Oracle for that database instead of mySQL, you could use Oracle's built in data replication to automatically refresh the web db from the existing db
    If you conclude that you still want to create a separate database for the web app and use mySQL I think you'll have to write some code to support the interface between the dbs (but hey, I'm a developer). The reason I say this is because it sounds like you're merging data from two databases into one and you may even be merging data from two separate databases into a single table of the new web database. If this is the case, simple data extract utilities will not be sufficient. Also, it sounds like the new column added to the web database may not be able to be populated from existing data. And then there's the question of what you need to do with the existing web data each time you run the data extraction ? The easiest case is that you'll always add data to the web db from existing db. If you have to purge the web db first and then refresh it with existing data then there's another step in the process. Overall, writing code to support an interface like this gives you complete control over the process and provides a lot of flexibility in how it is run. In my experience, there are usually new requirements added to the interface as time goes on. The code based approach can deal with changing requirements. The tools approach eventually falls short.
    One other issue to keep in mind is how to protect your existing database while exposing your web database to the Net. Since you need to support an automated interface between the two systems, you'll need to provide a path between the two databases without letting Net users gain access to your internal database. Some serious network security issues to resolve here, but I'm not a network admin.
    hth,
    Frank
    Hi,
    I am new to Oracle.. and would appreciate all help on the issues below.
    Currently, we have Oracle8i on HP-UX, and Oracle8i on IBM-AIX. We would like to be ble to browse the information on the web, thus, a decision to use mySQL as the web database was made. In order to achieve the above, we need to perform the following:
    1) Export Oracle tables to mySQL, from both the HP-UX and IBM-AIX machines.
    2) Include an additional column to the tables that need to be exported from Oracle to mySQL.
    3) Implement the export as a daily extraction that will run at a certain time of the day.
    How may I achieve the above?
    I have just installed the Oracle Enterprise Manager... will this have any help to the above???
    Appreciate all help given... greatly appreciated!
    Thanks and Brgds,
    Alicia

  • How to export result set from mysql query browser to .sql in oracle

    Hi folks:
    I was trying to export result set from MySql query browser to Oracle. I could able to do
    File->Export Result Set-> Excel format...
    What I am trying to get is .sql file so that I can run it as a script in my oracle db. Is there any way we can get .sql file with inserts and delimeters ....?
    Did you guys get my question.?
    Please throw some light on this....
    Could be very appreciable ....
    Thanks
    Sudhir Naidu

    Hi
    Create a sql statement which generates the insert statements.
    Something like this:
    select 'insert into table1 (column1, column2, column3) values (' ||
    column1 || ', ' || column2 || ', ' || column3 || ');' from table 1;
    The || sign is the string concatenation sign in Oracle, replace it the appropriate sign in MySql. Export the result set of this query into a file, and you can run it in a SqlPlus.
    Ott Karesz
    http://www.trendo-kft.hu

Maybe you are looking for