Koozali.org: home of the SME Server

phpmyadmin import database

Offline jameswilson

  • *
  • 833
  • +0/-0
    • Security Warehouse, professional security equipment
phpmyadmin import database
« on: April 22, 2026, 04:13:21 PM »
Was using the phpmyadmin contrib to export import databses, create users etc. All went brilliantly until i had a sql file > 100mb. I tried uploading to the server hoping it would be seen by phpmyadmin to import but it just said no files available. Where should i be putting it (i used the export deirectory)

Thanks
James

Offline ReetP

  • *
  • 4,051
  • +6/-0
Re: phpmyadmin import database
« Reply #1 on: April 22, 2026, 06:32:48 PM »
If you look in the Export section you can see it exports to /var/lib/phpMyAdmin/save/

If you check that directory you will see

Code: [Select]
ll /var/lib/phpMyAdmin/

total 0
drwxr-x--- 2 apache apache 30 Feb 19 22:42 cache
drwxr-x--- 2 apache apache  6 Oct  8  2025 config
drwxr-x--- 2 apache apache  6 Oct  8  2025 save
drwxr-x--- 3 apache apache 18 Oct  8  2025 temp
drwxr-x--- 2 apache apache 28 Oct  8  2025 upload

At a guess I'd look at trying the upload directory - note the file will need to be 0644 apache:apache for it to be seen.
So upload to the upload dir, change the perms/owner and then you shoudl be able to see it.

I just did a Export, copied from save to upload then wen to import and can see the file

"Select File to Imoort"

"Select from the web server upload directory /var/lib/phpMyAdmin/upload/:"

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline jameswilson

  • *
  • 833
  • +0/-0
    • Security Warehouse, professional security equipment
Re: phpmyadmin import database
« Reply #2 on: April 22, 2026, 06:50:48 PM »
Ah great to know thanks, didnt think about the permissions

Offline Jean-Philippe Pialasse

  • *
  • 2,979
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: phpmyadmin import database
« Reply #3 on: April 26, 2026, 03:44:02 PM »
starting 100mb  dump I would strongly advise to use cli.

there are so many way it could go wrong with transfer, php app limits (time, memory), httpd service, php-fpm service, communicaiton with mariadb...


the cli is as simple as that
Code: [Select]
mysql DBNAME < file.dump
« Last Edit: April 26, 2026, 03:45:50 PM by Jean-Philippe Pialasse »

Offline ReetP

  • *
  • 4,051
  • +6/-0
Re: phpmyadmin import database
« Reply #4 on: April 26, 2026, 04:24:38 PM »
^^^^^^^^^^^^^

What he said.... :lol:
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation