![]() |
apt-get update and apt-get upgrade problem - Printable Version +- Post4VPS Forum | Free VPS Provider (https://post4vps.com) +-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion) +--- Forum: VPS Support (https://post4vps.com/Forum-VPS-Support) +--- Thread: apt-get update and apt-get upgrade problem (/Thread-apt-get-update-and-apt-get-upgrade-problem) |
RE: apt-get update and apt-get upgrade problem - Mashiro - 06-23-2018 (06-23-2018, 09:54 AM)youssefbasha Wrote: I want to backup mybb forum db but i forgot the password, can anyone help me? Thanks Open the config.php file in the inc folder of your MyBB installation: <MyBB root>/inc/config.php It contains the database server, database name, database username and its password. ![]() RE: apt-get update and apt-get upgrade problem - youssefbasha - 06-25-2018 root@vps4:/var/www/vhosts/firex-host.com/httpdocs/inc# mysqldump –u frx_1 ******* frx_1 > backup.sql mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect Please answer RE: apt-get update and apt-get upgrade problem - Mashiro - 06-25-2018 There's an elephant in the room: Quote:1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect Your mysqldump application still tries to login as MySQL root instead of the user you specified. So there must be something wrong with the command. If e.g. the password is wrong the error should look like the one below. Command: Code: mysqldump -u dbuser -p'dbpasswordwrong' testdb >testdb.sql Result: Code: mysqldump: Got error: 1045: Access denied for user 'dbuser'@'localhost' (using password: YES) when trying to connect A correct password will simply create the database .sql dump without any error messages or similar. Compare your command with mine and you will see major differences. RE: apt-get update and apt-get upgrade problem - youssefbasha - 06-25-2018 root@vps4:/var/www/vhosts/firex-host.com/httpdocs/inc# mysqldump -u frx_1 -p'***' frx_1 >testdb.sql mysqldump: [Warning] Using a password on the command line interface can be insecure. root@vps4:/var/www/vhosts/firex-host.com/httpdocs/inc# RE: apt-get update and apt-get upgrade problem - Mashiro - 06-25-2018 And this is supposed to tell us what? Did it work or not? Is there a testdb.sql file in /var/www/vhosts/firex-host.com/httpdocs/inc? The warning is just a warning and not more. Not an error. So posting this output without any comment.... You try really hard to discourage people from helping you. I see. RE: apt-get update and apt-get upgrade problem - youssefbasha - 06-26-2018 (06-25-2018, 08:20 PM)Hidden Refuge Wrote: And this is supposed to tell us what? Did it work or not? Is there a testdb.sql file in /var/www/vhosts/firex-host.com/httpdocs/inc? Ok ty ![]() ![]() i love u :d I just got 1 problem while downloading the testdb.sql but i downloaded it and resetted the vps RE: apt-get update and apt-get upgrade problem - Mashiro - 06-26-2018 Great to hear that it finally worked out for you. Restoring the database can be also done easily via mysql. Just check the "Restoring your MySQL Database" section of http://webcheatsheet.com/sql/mysql_backup_restore.php Alternatively if you have a webserver on the VPS with PHP you can simply use phpMyAdmin to create, manage, backup and restore databases. RE: apt-get update and apt-get upgrade problem - arsalahmed786 - 07-04-2018 @"Hidden Refuge" Thanks for help and of course thanks for report staff about thread. /Thread has been closed & moved. RE: apt-get update and apt-get upgrade problem - youssefbasha - 07-16-2018 Hmm @arsalahmed786 you can close the topic now @Hidden Refuge helped me alot ![]() Thanks all |