Upload Wordpress DB SQL file from Windows to Linux with PHP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Upload Wordpress DB SQL file from Windows to Linux with PHP

Postby gazpachu » 16. May 2011 12:35

Hello,

I'm programming a PHP script to deploy a Wordpress DB in a Windows XAMPP server to an online Ubuntu server.

I was able to create the .sql file and now I need to import that into the Linux server.

I was thinking to use the exec() command... what do you think?

echo exec('C:\xampp\mysql\bin\mysql.exe -h $staging_db_server -u $staging_db_username $staging_db_password $staging_db < tmp.sql');

are there other options?

Thanks a lot :o
gazpachu
 
Posts: 1
Joined: 16. May 2011 12:30

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 86 guests