Importing MySQL Database To Local Machine
I have exported a MySQL Database from a remote server using PHPMYADMIN, saved on my local XP machine as an sql file to insert (with name _DB_.sql) but am not sure how to get this to run on my local XP machine which is running MySQL locally; When I view the file on Notepad it appears to be executable in some way as it includes CREATE command etc.
I tried the following from MySQL command line SOURCE C:/Program files/MySQL/_DB_sql but can't see any evidence of the database having been created on my local machine.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Dumping My Live Database And Then Putting It On My Local Machine Problem..
I have tried copying the dumped sql code in mysql query browser once dumped from live and it doesn't execute it, i have to extract it line by line and that would take forever to do this all, is there an easier way to do this or can someone run me through the basics on how to achieve this? i have on my live site: 4.0.25 (patched) and on my desktop computer : 5.0 Would this be part of the reason? i don't know..
How To Insert Machine (local) Time In Mysql
This is a problem I encountered in mysql: how do I insert local (machine) time? To do this in MS Access, just put now(). I tried this in mysql, it does not work. see graph(the red chinese characters means the same thing as above.)
Connecting On A Local Machine
I have recently installed Mysql on my local machine. I can access Mysql through the Mysql Command line client. But I can't connect through mysql_connect.php script. I have always used mysql through our hosting company with no problem. This is the first time I have installed it on my machine. When running the script I recieve the following error Could not connect to MySQL: Can't connect to MySQL server on 'localhost' (10061
BACKUP DATA TO LOCAL MACHINE
Is there an easy way I can backup / copy MySql tables to my desktop PC. It would be neet if I could query these backups once of my desktop PC with MS Access.
Nightly Backups To My Local Machine
I have a MySQL database on one of my sites with shared hosting company which has nightly DB backups. However I would like to have a nightly copy for myself on my local machine. Is there a way to automatically expoxt the entire MySQL database and FTP it to my local machine nightly? Do i just need an FTP program that provides scheduling or are there other ways?
Slow Table Access On Local Machine
I'm running MySQL 4.1.7-nt on my laptop, and I'm accessing it through ODBC (MyODBC-3.51.10-x86-win-32bit). I'm developing a .NET web application, but I don't think that's relevant. I already had the application running OK on my desktop, and when I created the same environment on the laptop, retrieving trivial amounts of data (5 rows) from a table is taking 6 seconds. Updates the same. IN otherwords any table access takes 5 or six seconds. (Table only has about twenty rows in it). I can connect to the database on the laptop from the desktop (i.e - application runs on desktop, retrieves data from laptop - works fine, not noticeably slower than local on desktop. If I connect the other way - application on laptop, database on desktop, it runs just as slowly as locally. The effect is the same whether I connect to 127.0.0.1 or via the machine name. Code:
How Do I Create A Database On Linux Machine Running Mysql?
I have an sql script file that is supposed to create a set of database tables for me. Supposedly I type the following on my linux box and its all supposed to work... mysql (ENTER) . mysql_dump.sql.txt When I type myslq <ENTER> I get a command prompt that looks like this... mysql> But I don't know how to change directories from that command prompt to the directory where mysql_dump.sql.txt is located. Can someone tell me how to change dirs at the mysql> prompt?
IMPORTING CSV INTO MYSQL DATABASE
I'm hoping for some help importing a .CSV file into a MySQL database. I'm getting this error message: ERROR 1062 (23000): Duplicate Entry '4' for key 1 I've tried it both by using PhpMyAdmin and the MySQL command line prompt and no luck either way. I don't see how it could say the entries are duplicates since the data is different. Below is the error message I get when I'm trying to use PhpMyAdmin to import the data: Code:
Moving Database To New Machine
I'm trying to relocate my site to a new host and I'm having a lot of trouble moving the database. I did the export for the old host/database with phpmyadmin. It saved to a txt/sql file with no problems. When I try to import it into the new host/database I get all kinds of syntax errors. Then I realized, after purchasing the new host that: Old host/db = MySQL version 5.0.24a New host/db = 4.0.27 Is there any way to convert a 5.0 db to 4.0?
Connect Remote JSP Files With Local MySQL Database?
I use dreamweaver 8.0. I have my jsp files on the remote server Z:. I have my local computer 'A' connected to this server. I have my MySQL database on my 'A' computer. I want to know how to connect the remote JSP files with the database? Currently I am using jdbc.odbc drivers on 'A' computer. But my server computer has Linux and uses org.gjt.mm.mysql drivers. Which drivers and Where should be the drivers?
Connect Remote JSP Files With Local MySQL Database?
I use dreamweaver 8.0. I have my jsp files on the remote server. I have my local computer connected to this server. I have my MySQL database on my computer. I want to know how to connect the remote JSP files with the database? Where should be the ODBC-drivers?
MySQL Administrator Backup Directly To Local Database
In MySQL administrator is there a way to backup directly to my local database from a remote host. I would ideally have this done automatically once a day. I like to test locally and don't want to have to restore the database locally each time a backing from the remote site is done.
Exporting And Importing MySQL Database
Do i use mysqldump to get a .sql file then upload this to the ftp of the webhost or am i wrong? also what do i set my address, username and passwords to connect the database in my config.ini.php?
Importing Txt Files Into MySQL Database
For a long time I've been considering converting all the information on my homepage from php based to database based but I've always put it off because I have no idea how to go about doing this. My main problem is that I have thousands of .txt files that have information like in this example that are imported into a webpage using php. ----- homersimpson.txt firstname=Homer lastname=Simpson maritalstatus=Married relatives=Marge (wife), Bart (son), Lisa (daugter), Maggie (daughter)... etc hometown=Springfield ----- and so on. Sometimes the order in the files is different and "lastname=" comes before "firstname=" and so on which makes it practically impossible for me to turn the files into a tab or commaseparated files. Now what I'm interested in knowing is whether or not there is a way for me to import such txt files into MySQL so that the first names, last names and so on go in the right tables? And if there is how is it done?
Importing A MySQL Database From .frm, .myi And .myd Files
I have the contents of a MySQL database sitting in a folder. Each file in the folder is an ISAM table that is comprised of three files, its ..frm, .MYI and .MYD. I would like to import this database on another MySQL installation running on another machine. I thought it would be as simple as mysqladmin create <database_name> and then navigating to the databases data directory and dropping in the ISAM files, however, when I connect to the database using mysql I get "Didn't find any fields in table <table_name>" for each of the 16 or so tables I tried to copy over.
Importing CSV File Into Mysql Database
I have a csv file with over 300 columns. I do not want to manually create the table with that many columns, then import the csv file to fill the data. Is there a way to import the csv file and have the first row in the file create the table column names?
Md5 Problem After Moving Database To Another Machine
I moved my MySQL database to my own web server (Windows NT4 server, Apache 2.0.55, PHP v4.4.0, and MySQL v4.0.26). I used "mysqldump" and "mysql -u root -p ccs < sqldumpfile" to backup and reload the tables. Some PHP scripts that work fine on my ISP (MySQL v3.23.58) do not work on my local PC (MySQL v4.0.26). The part of the select statement where the problem lies is: and password='".md5($MD5_PREFIX.$_POST["password"])."' I did some testing via the mysql command line interface and it appears that the md5 function is generating a different value. If I set the password to '123' with no encryption and remove the md5 stuff from the PHP script it works (the $MD5_PREFIX has not been changed and I even did some testing in mysql by hardcoding the value) -- so I'm pretty sure the problem lies with the md5 function. Is there a difference in md5 between different versions of MySQL? If not, can someone point me in the direction of a solution?
Moving Database To Alternative Machine.
Have installed version 4.1 on 2 machines. I am trying to copy a database that i created on one machine by simple going to the data folder and copying the database folder pasting it to a removable device. I then copied the folder into the data folder on my second machine. However, when i attempt to do a select * on any of the tables on the second machine, I am told that the table is corrupted or does not exist.
Backup/Restore Mysql Database From Remote Server To Local Pc
Im trying to download mysql database "dbproducts1" which is residing in my webhost's server (Linux). From telnet i backed up using "mysqldump -u -p dbproducts1 > dbproducts1.sql" Then i downloaded this file via ftp to my local pc(WinXP). Now on my local pc to restore database i went to command prompt and i did following: mysql -u -p dbproducts1 < dbproducts1.sql I got following error: ERROR 1064 (42000) at line 380: 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 '-workshop ( title varchar(250) NOT NULL default '', decription longtext NOT ' at line 1 I opened the phpmyadmin and found that dbproducts1 database was restored but with only few tables i.e. not all tables in the db was restored. Can somebody please help me to backup/restore this database. I checked the mysql server version and found following: server version: 5.0.24a-community in my local winxp pc server version: 3.23.36 in my webhost's server (Linux)
Update Online MySQL Database Weekly From Identical Local One
I have two identical MySQL databases. One is offline and is the primary database. The other is online and will have the data from the offline one imported into it. i.e. all the changes and additions will be done in the offline one and then copied over to the online one weekly. I've got no problem with the SQL for adding the new records and updating those that have changed but don't know how to remove the records that have been deleted from the offline database. At the moment I am deleting the tables and then adding them again (DROP TABLE IF EXISTS and CREATE TABLE IF NOT EXISTS).
Method For Importing Large Database File To Mysql
I use phpMyAdmin on my shared hosting accounts. On my development computer I have a large mysql table (270MB) that I want to import into the website database. I believe LOAD DATA won't work for this size and I don't think copying/pasting 600,000 INSERT statements into the SQL query box makes sense (maybe it does?). Has anyone been successful getting importing a large file into mysql?
OSX Mysql Database Editor And Importing Data From Other Files
I have always been a Mac based creative designer, but have kept all my web development on the Windows platform on a little Laptop (curse it!). I now find myself in a position where I would like to move all my development onto the Mac platform. I have already found Smultron to be a excellent little script editor which I am more than happy with... infact I like it better than Notepad+ which I previously used on Windows! I am delving deeper into PHP/mySQL development now, and although I have got along fine using myphpadmin installed on my webserver so far for doing little jobs I now would like to look at a more sophisticated solution for manipulating mySQL databases. In particular I have a requirement of importing a lage amount of data that is being supplied to me that I should be able to export as a csv or similar file. I really need something that I can build a database in on my local machine, and then (I'm guessing) export it out as a mysql command that I can run through myphpadmin on the server that will insert and build the database. Any advice or info... I'm guessing I'm looking for something like mysql front - http://www.mysqlfront.de/ BUT ON Mac OSX!
Script For Uploading Data From Local Database To Production Database
I am using MYSQL 4.0 for my local and production databases. I want to extract selected records from selected tables from local database and upload them to my production database on daily basis. In other words, I want to upload data which is entered in local database on daily basis to my production database.
Open Local Database
I have a file called local.db. I suspect that this is a MySQL database. How do I verify this and how do I open it? I have installed the Administration tool and the MySQL server database on my local machine.
Backing Up A Non-local Database
I've just started working with MySQL, and have gone from developing php applications on my own computer to putting them out on the Web. I used to have a small batch program that would run on my machine that would do a backup of my Timesheet database. The syntax was simply: mysqldump --user=dave --opt --result_file="time_backup.sql" timesheet When I moved the application over to our company's Web server, I still wanted to do an automatic backup daily, and I put this into a batch file: mysqldump --user=dave --host=annexweb.kwic.com -p******* --opt --result_file="time_servback.sql" timesheet But when I run it to test it out, I get this error message: #1045 - Access denied for user: 'dave@adsl-216-94-26-35.kwic.com' (Using password: YES) I know I have the username and password right (I use them to log on through PHPMyAdmin). Can anyone point the way to figuring this one out?
Setting Local Database Location
I use Adobe GoLive for web dev and am now incorporating PHP scripting and MySQL databases. Everything works really well as far as functionality (first time using GoLive for dynamic site dev) but I'd like to have the MySQL database file for the site reside somewhere in the directory structure that GoLive sets up as opposed to the default location set in the MySQL .ini file. If I'm developing multiple websites, each with a MySQL database, how do I set things up such that each website's database resides in a different directory?
How Can I Upload My Database From Local Pc To Server
I got a problem when I tried to upload MYSQL database. I don't have any idea how to upload it. It is my first time to do it. I already upload the pages from my local pc to server with Bulletproof FTP transfer and now I want to upload my database. For now I am using vertrigoServ 2.15 and I found my database in folder path C:Program FilesVertrigoServ2Mysqldatamydatabase. And I want it to transfer to my server. Do I need to install special software to fix my problem? Do I need to install MYSQL and php5 to my server? If there is any one who can give me detailed information, please make it clear and more detail b/se I don't have any idea how to upload database.
Importing A Database
I want to import a database from my PC to a MySQL program I just set up on my new Apple laptop. I downloaded MySQL's GUI Tools and installed it on both my PC and Mac. I then backed up the database I want to import, converting it to a .mbp file, which I then copied to my Mac. Now I'm trying to figure out how to do the next step - import Backup.mbp into my new MySQL program. I thought perhaps I could import it with phpMyAdmin, similar to importing SQL files, but that didn't work. What's the easiest way to do it? Do I need to recreate the database first, then import the .mbp file into it? Or is there a way to just import the .mbp file into MySQL, and it will automatically replicate the database, along with all the tables it contains?
Importing A Database
Suppose I've backed up a database using mysqldump. Now I want to import this database to a MySQL in another machine. The database name might be the same one as the original or something new. How do I do it?
Importing A Database
I have a client who I am doing some work for. They use MySQL. Having installed MySQL, they sent me a CD with data files on. All these data files are of the format *.MYI, *.MYD and *.frm. Looking at my existing databases, these files seem to be the index, data and ? files for their tables. I copied these files into my /mysql/data/<database name>, and expected to be able to open up My Query Browser and see all their data. However when I click on the database name, I get this error: Could not fetch Schema Tables MySQL Error 0 Has anyone got any idea of what is going on here? I've looked through all the manuals and the website but can't seem to find anything relating to this.
Importing 5MB Database
I am new to MySQL and my skills really on extend to importing and exporting using phpmyadmin. I have a database I need to import which is around 5MB and the import limit on the server is around 2MB. Extending the limit is not an option. I have tried to import using ssh and get the error saying the database already exists. I tried deleting the database and running the command again I then get the error of restricted access to blar@localhost etc. I then tried using a php script called BigDump, I set it up as instructed and got the same error - MySQL: Can't create database 'copperfieldwines_com_-_cart'; database exists. I'm thinking I need to edit the MySQL dump but haven't a clue what to do.
Importing Database
i'm trying to import a sql file into an empty db (no tables yet) mysql -u root database < c:database.sql i get this error: ERROR 2006 at line 380: MySQL server has gone away the sql file is more than 15 megas of size (i don't know if this is the problem) and has no errors because it was generated by phpmyadmin 2.6 what can i do to import my db?
Importing Database
I backed up my database yesterday and it saved it to a csv txt file. I had to reinstall my store and database and can't seem to get the import to work for the file. I am using myphp for my database
Importing A Database To Phpmyadmin
I am trying to import this database to another site so in MySQL PHPMyAdmin I clicked on import and browse to groupd_datab1.sql which I exported from the previous website Code:
Importing .frm Files Into A New Database?
I have been having a problem accessing my MySQL 5.0 on WinXP with the following error: "Could not start the MySQL service on Local Computer. Error:1067: The process terminated unexpectedly." I wasn't able to resolve it so I made a copy of the data folder, sub-folder where the tables I had created earlier resided. I installed MySQL 5.0 on another computer. I then copied the .frm files and the ib_logfile0 and ib_logfile1 plus the ibdata1 files into the newly created data folder. I then started Navicat but it didn't see the new databases from the localhost connection. I even tried copying the .frm files directly into the default 'MySQL' db that is created when you install the program. Still nothing. I know I have probably really screwed up but I had previously created around 30 very detailed tables and I would hate to have to start over.
Importing Part Of A Database
I have a MySQL database and I want to cut and paste a part of it into my current MySQL database. is there a certain place that it has to be cut ? Here is a sample of the data, can someone tell me where I start the cut. Code:
Importing A Complete Database
I have a MySQL .sql file that contains not only a single table but several, its a dump from a complete database. How can I import that back into a MySQL Server? MySQLImport seems not to be able to handle complete databases, each table has to have it's own textfile... or am I wrong there? if yes, what would be the typical command?
Errors Importing Database
Every time i try to insert my phpbb database using phpmyadmin or BigDump it always gives me an error. The first errors where because of this 'é' so i went through and removed them all. I then tried to import it again and it couldn't insert the character 'ñ'. The exact error message for the ñ letter is:- "Error at the line 148033: INSERT INTO phpbb_search_wordlist (word_text, word_id, word_common) VALUES('�', '33883', '0'); Query: INSERT INTO phpbb_search_wordlist (word_text, word_id, word_common) VALUES('ñ', '33883', '0'); MySQL: Duplicate entry '�' for key 1" I updated my version of MySQL to 5.0.22 as i believe that is the most recent version for CentOS. It's a new server so i may be missing something that is hindering the import.
Importing Part Of A Database
I have a MySQL database and I want to cut and paste a part of it into my current MySQL database. is there a certain place that it has to be cut ? Here is a sample of the data, can someone tell me where I start the cut. # # Dumping data for table `category` # INSERT INTO `category` (`id`, `name`, `pid`, `fset`, `weight`, `image`, `descr`) VALUES (8, 'Boat Parts & Accessories', 237, 'miscellaneous', 0, '', ''), (3, 'Exercise Equipment', 21, 'miscellaneous', 0, '', ''), (4, 'Autos', 0, 'auto', 0, ', 'Cars,Trucks,Vans,Parts & Accessories'), (5, 'Motorcycles', 0, 'motorcycle', 0, , 'Motorcycles, Scooters,
Transfering Database From Local System To Live Server
I have a site running locally on my notebook and I copied my site to a live server. I have no problem getting the PHP & HTML files to the server, but i'm not sure how I can move the database and data to the live server. Can I copy a file to the live server like I can with an MS ACCESS database? Or do I need to recreate the whole database on the live server and somehow figure out how to transfer the data?
Migrating My Mysql DB From One Machine To Another
We are moving our mysql db from one machine to another -- both linux. Origin machine is running mysql 3.23, destination machine is running mysql 4.1. Can we simply copy all *.MYD / *.MYI / *.frm files from one machine to the other and have things work? Or do we *NEED* to do a text dump of the tables, and reload each one individually on the new machine?
How To Go About Re-installing MySQL On A New Machine?
I have MySQL installed and a database already built and loaded with data that is collected nightly from the mainframe database. I am currently running on NT and will be loading a new image onto the machines to change the operating system to Windows2000. From what I understand, I will need to copy all files I want to keep, including my database. My question is, once the new image is on, I will need to re-install MySQL, is it as easy as just copying back the MySQL directory back onto the machine and the database still work? If not, can someone tell me what the general process is to do this without losing the database and any issues that I am going to run into?
Anyway To Run 2 Instances Of MySQL On The Same Machine?
I was wondering if there is anyway I can run 2 instances of MySQL Server on the same machine, the reason is I have one machine and I want to be able to simulate my program which really talks between 2 systems accessing their own MySQL server datas but I dont have 2 machines with me all the time to do this, it would be great If I could somehow manage this.
Connect To MySql From Another Machine
I have RHEL 4.0 installed on a x86 box, and am using the standard MySql server that comes with RHEL 4 (MySql version 4.1.12). I tried downloading the Administrator tool, but had problems installing it. (This issue has already been reported at http://forums.mysql.com/read.php?34,65093,65093#msg-65093). I have an Administrator install on a Windows machine, and I want to use it to connect to the MySql server on the RHEL box, but get the error that says: Host '<my_machine>' is not allowed to connect to this MySql Server. Can I use the Windows Administrator tool to connect to a MySql server on Linux? (same network and sub-net) During the RHEL install, the firewall option has been disabled, so that's not an issue. I think I need to add an entrry somewhere in the MySql db that allows other machines to connect, but am unsure of how to add it, and what the syntax looks like.
Access MySQL From Another Machine
how do I make MySQL server accessible from the network to other web servers. Right now I have the MySQL server and the web Server all on the same server. But I want to have a server that is solely responsible for MySQL and 3 others servers that are responsible for web page serving via Apache. The web servers need to be able to access the MySQL database. |-----| |----| |----| |Web | |Web | |Web | |-----| |----| |----| ! ! ! !!!!!!!!!!!!!!!!!!!! | |----| |My- | |SQL | |----|
Usinq MySQL And MS-SQL On The Same Machine?
I want to try MySQL but I already have Microsoft SQL Server on my machine. Can they reside on the same PC or will they mess eachother up? And why does the name of this newsgroup start with 'mailing.'?
|