i am using mysqldump to backup the database available in MySQL using the PHP to the sql dump format which creates the .SQL file. if i want to view / check the backup file then i have to import it first in order to check/verify/view the data which takes a lot of time.
the issue/question is whether there is some way to create the backup copy of the MySQL database in some other format like MS-ACCESS etc rather than sql dump .sql file ?
it will make it easy to open and check the database backup files.
In basic terms you cannot do that, mysqldump is literally a sql file which has insert statements which would insert the data, where as a Ms-access has a accdb which is where the data is actually stored.
The import you are running actually takes the sql file and inserts it into your access db.
Related
I'm having an old project which have server language is php. The project have .sql file database. How can we deal with this .sql file (i.e open in database program like MySQL workbench) to see the list of table and the corresponding data type, and real data type store in that table?
Any help is much appreciate.
P.S.: My php folder is zip and download from production server. I need to find out the incorrect data in .sql table (i.e see table content, real data inside)
.sql file is actually a database dump. You will have to import it using any MySQL management tool like phpmyadmin or MySQL workbench. See this thread
How can I import data into mysql database via mysql workbench?
I am connection to Oracle using PHP.
Now i've a file in PHP containing some data which I want to load into Oracle database table. Easiest way to do this is to read file and create insert queries to do this.
But can I load this data from my file in my server into a oracle table without uploading the file to oracle server as i don't have its FTP access?
Another consideration for bulk loading data into Oracle table(s) is the SQL Loader utility.
You don't have to upload it the ORACLE server in order to do your inserts.
I have a similar example:
I read .csv files which have a lot of records regarding used cars' makes, models
and quotes .
I have a class which reads these files ( from my local PC) prepairs insert, updates and deletes makes all these CRUD operations in a REMOTE ORACLE SERVER.
Your web server should have access, authorization, to connect to the ORACLE instance, that's all.
I work often in MS Access and I always create linked tables to csv or txt files so that when some part of data changes in a source file the change appears in the dtb as well.
Is there a way to create linked tables in a mysql database used for storing data for php page?
Can phpMyAdmin in xampp do this?
MySQL supports a CSV storage engine.
Read the documentation here for more details:
http://dev.mysql.com/doc/refman/5.6/en/csv-storage-engine.html
So you can create a table that is linked to a CSV file, and if you modify the file, the new data will immediately become visible to SQL queries.
Yes, you can create a linked table to MySQL in Access. You will have to install the MySQL driver on the user's machine, and setup an ODBC. Then you can create a linked table to that ODBC connection.
I want to write web service which gets sqlite database from client device (i-phone app) and sync with server mysql DB. both sqlite and mysql has same DB table structure.
Should i accept json string from client for each table and parse it on the server end and get store the data in mysql DB. is it the right solution or is there any other solution for syncing both client and server DB ?
SQLite has an option to dump the DB into a text file containing SQL commands. See Exporting from SQLite to SQL Server and http://sqlite.org/sqlite.html.
You can dump the SQLite into a file, have your program tweak the SQL a bit (remove table creation, triggers and other irrelevant stuff) and run it on the MySQL DB.
On my older computer's HDD, I have WAMP5 installed with MySQL and PHPMyAdmin. The data is in the folder. How do I get that data that is in three files? The data is at E:\wamp\bin\mysql\mysql5.5.24\data\fbdb, I can see it.
I want to import the country table to the fbdb database, these are the files I have from it: country.MYD, country.frm and country.MYI
What do I do with these files to add to new database?
Assuming you've created an 'fbdb' database on the new computer, just copy the country.* files you've found into the 'fbdb' folder under your new machine's MySQL data directory, and restart the MySQL server -- as long as it's the same version or newer as the MySQL server on which the table was created, this should be all you need to do, as the MySQL engine will automatically check, and if necessary update, the 'country' table from those files.
You should export and then import the desired parts of your database from your old disk to your new disk, or even the whole database. First you export what you need into a file then you can use that file to import it into the database. Read this forum thread for more information.