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 (8 Replies, Read 1943 times)
LeonardChallis
Group: Member
Post Group: Newbie
Posts: 3
Status:
I've created a custom package and it is running nicely, apart from the fact that the database isn't being setup correctly.

In my install.php I have the following:

PHP Code

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



After the installation runs, the SQL dump file appears in the /tmp folder correctly. However, the sub_import() function isn't running correctly.

I don't see any errors, and manually importing the SQL to the same database from the dump file works fine. I may be looking in the wrong place but my /var/softaculous/error_log is empty and I can't find anything in other logs I've seen - maybe I'm missing the correct one?

If someone can suggest something to try next I'd appreciate it.
IP: --   


Threads
 LeonardChallis   Database created but not importing SQL (8 Replies, Read 1943 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 17, 2019, 7:11 pm.

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