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
LeonardChallis
Group: Member
Post Group: Newbie
Posts: 3
Status:
Hey Brijesh, thanks so much for replying!

In the documentation I read this:

sdb_import($parameter1) - This function is used to execute the database queries.
1st Parameter (required) = String $parameter1 is the Absolute path of the file which contains the database queries to be executed.

From what you've said, does this mean the documentation is wrong, and it's actually the relative path from /var/softaculous/softname?

If so, and presuming I want to dump a database first, how would I do this? I have tried doing something like this:

PHP Code

 sdb_export('localhost''some_db''password''someuser'$software['soft name'] . '.sql');
sdb_import($software['softname'] . '.sql'); 



But that doesn't work. I presume this is because of permissions? But I did a touch mysoftname.sql and chown myuser:myuser mysoftname.sql and re-ran installing the package but that didn't work.

As noted in my first post, it works if I try write to /tmp.

So, if I want to dump a database and place it in the package directory then import it, what's the correct way to go about it please?

Kind regards for your help!
IP: --   


Threads
 LeonardChallis   Database created but not importing SQL (8 Replies, Read 6005 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.012