Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Database created but not importing SQL



Normal Mode | Print  

Database created but not importing SQL
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5825
Status:
Hi,

It looks like the documentation was incorrect for the sdb_import() function. I have updated it :
http://www.softaculous.com/docs/Making_Custom_Package#Explanation_of_Important_functions

To achieve your purpose you can use the following code :
PHP Code

 $sqlPath '/tmp/' $software['softname'] . '.sql';
sdb_export('localhost''some_db''password''someuser'$sqlPath);

$queries sfile($sqlPath);
sdb_query($queries'localhost''someuser''password''some_db'); 



Edited by Brijesh : November 2, 2015, 10:01 am

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   


Threads
 LeonardChallis   Database created but not importing SQL (8 Replies, Read 5694 times)
    |--  Brijesh   Hi, sdb_import() takes...   on October 31, 2015, 2:45 pm
    |--  LeonardChallis   Hey Brijesh, thanks...   on October 31, 2015, 3:24 pm
    |--  Brijesh   Hi, It looks...   on November 2, 2015, 9:30 am
    |--  LeonardChallis   Thanks again, that...   on November 2, 2015, 9:53 am
    |--  Brijesh   Hi, Yes it...   on November 2, 2015, 10:02 am
    |--  purjayadi   i have some...   on July 18, 2019, 10:00 am
    |--  Brijesh   Hi, As per...   on July 19, 2019, 9:05 am
    |--  purjayadi   solvedHi, As per...   on July 19, 2019, 9:16 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is July 4, 2025, 4:45 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.015