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: 5857
Status:
Hi,

sdb_import() takes the parameter as the filename and the file should be available at :
/var/softaculous/SOFTNAME

You just need to pass the filename, you cannot pass the full path to the SQL file.

Or you can read that SQL file and then execute the query using sdb_query() function :
PHP Code

 sdb_query($data$__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); 



-----------------------
Softaculous
Supercharge your WordPress Hosting with SoftWP (10+ WordPress Pro plugins for Free)
IP: --   


Threads
 LeonardChallis   Database created but not importing SQL (8 Replies, Read 6011 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 October 19, 2025, 11:59 am.

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