i have been trying to compile php with apt-src and after about 20 minutes in one of the php tests fails trying to connect to mysql and itacked the script making the error here is the error from setup-mysql.sh
150419 17:48:11 [Warning] Can't create test file /home/php-build/php5-5.5.9+dfsg/mysql_db/orangehrm-Inspiron-N5010.lower-test
150419 17:48:11 [Warning] Can't create test file /home/php-build/php5-5.5.9+dfsg/mysql_db/orangehrm-Inspiron-N5010.lower-test
ERROR: 1005 Can't create table 'db' (errno: 13)
150419 17:48:11 [ERROR] Aborting
150419 17:48:11 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/home/php-build/php5-5.5.9+dfsg/mysql_db for more information.
You can try to start the mysqld daemon with:
shell> /usr/sbin/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /home/php-build/php5-5.5.9+dfsg/mysql_db that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before submitting a bug report
at http://bugs.mysql.com/
im running the compilation according to this
im running everything as root
note im compiling just the php and if there is a way to disable tests in php that would be grate.
In the source directory, open the rules file debian/rules.
Find the line RUN_TESTS = yes and comment it out like #RUN_TESTS = yes .
Then, tests won't run during the build.
Related
I have recently updated mysql that was located under my xampp folder, and i've got the following errors, reporting from the log file :
2018-04-19T12:59:19.667059Z 0 [System] [MY-010116] [Server] C:\xampp\mysql\bin\mysqld.exe (mysqld 8.0.11) starting as process 9324
2018-04-19T12:59:20.025280Z 1 [ERROR] [MY-013090] [InnoDB] InnoDB: Unsupported redo log format (0). The redo log was created before MySQL 5.7.9
2018-04-19T12:59:20.026140Z 1 [ERROR] [MY-012930] [InnoDB] InnoDB: Plugin initialization aborted with error Generic error.
2018-04-19T12:59:20.229069Z 1 [ERROR] [MY-011013] [Server] Failed to initialize DD Storage Engine.
2018-04-19T12:59:20.230803Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2018-04-19T12:59:20.231371Z 0 [ERROR] [MY-010119] [Server] Aborting
2018-04-19T12:59:20.233136Z 0 [System] [MY-010910] [Server] C:\xampp\mysql\bin\mysqld.exe: Shutdown complete (mysqld 8.0.11) MySQL Community Server - GPL.
I have been told if updating your mysql, you should comment out the deprecated configs that are located in your my.ini, but i had no idea what to comment out, so i left it as it is.
Any idea what causes this?
If you have already installed MySQL and did not perform a slow shutdown using the
innodb_fast_shutdown
Flag, simply go to your MySQL directory
/var/lib/mysql/
And remove the log files (Do not do this if you need the table data in your database until you have backed up your database):
ib_logfile0
ib_logfile1
Back them up before if you need them again.
Docker users
I faced with the same error while using dockerized mariaDB.
The solution was:
remove the docker image:
docker image ls
docker rmi imagename
remove the volume:
docker volume ls
docker volume rm yourvolume
remove the container:
docker ps -a
docker rm yourcontainer
Then:
docker-compose up
Windows 10 Users
Also in windows if you want to remove the log files as it was suggested earlier:
The ib_logfiles are in
C:\ProgramData\MySQL\MySQL Server x.x\Data
Mac OS X Users
The ib_logfiles are here
rm /usr/local/var/mysql/ib_logfile*
In my case, I have deleted the complete folder /var/lib/mysql and restarted the mysql service and it worked...
rm -rf /var/lib/mysql
Note: You may loose your data if you delete that folder
I am looking for solution on how to update mariadb on xampp 32 bit on window system but not found any article on that.I just found this link. Please help me how to update. I want JSON support that's why I am looking for update from V10.1 to V10.2. Or if there is any other way to do this please let me know
Current version is 10.1.19-MariaDB
1 : Shutdown or Quit your XAMPP server from Xampp control panel.
2 : Download the ZIP version of MariaDB
3 : Rename the xampp/mysql folder to mysql_old.
4 : Unzip or Extract the contents of the MariaDB ZIP file into your XAMPP
folder.
5 : Rename the MariaDB folder, called something like mariadb-5.5.37-win32, to
mysql.
6 : Rename xampp/mysql/data to data_old.
7 : Copy the xampp/mysql_old/data folder to xampp/mysql/.
8 : Copy the xampp/mysql_old/backup folder to xampp/mysql/.
9 : Copy the xampp/mysql_old/scripts folder to xampp/mysql/.
10: Copy mysql_uninstallservice.bat and mysql_installservice.bat from
xampp/mysql_old/ into xampp/mysql/.
11 : Copy xampp/mysql_old/bin/my.ini into xampp/mysql/bin.
12 : Edit xampp/mysql/bin/my.ini using a text editor like Notepad. Find skip-federated and add a # in front (to the left) of it to comment out the line if it exists. Save and exit the editor.
13 : Start-up XAMPP.
Note If you can't get mysql to start from Xampp control panel.
Add this 'skip-grant-tables' statement anywhere in xampp/mysql/bin/my.ini
file
14 : Run xampp/mysql/bin/mysql_upgrade.exe.
15 : Shutdown and restart MariaDB (MySQL).
If still mysql is not started then follow below Note steps(!Important)
Note :mysql error log file: c:\xampp\mysql\bin\mysqld.exe: unknown variable 'innodb_additional_mem_pool_size=2M' like please remove or commented this statement in my.ini file in this path xampp/mysql/bin/my.ini file.
Help from this link.
I tried the same solution did not work for me check the error log and based on this i commented out this option because it has been deprecated.
Line number 145 in my.ini file
#innodb_additional_mem_pool_size = 2M
2018-02-17 23:08:47 bf0 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
It worked for me.
Shutdown MySQL in your XAMPP server from Xampp control panel or mysql under Services if it was added.
Download the ZIP version of MariaDB (https://downloads.mariadb.org/) - you may download the winx64.zip if you are also switching to x64 variant of mariadb
Rename the xampp/mysql folder to mysql_old
Unzip or Extract the contents of the MariaDB ZIP file into your XAMPP folder
Rename the MariaDB folder, called something like mariadb-10.3.14-winx64, to mysql
Rename xampp/mysql/data to data_temp
Copy the xampp/mysql_old/data folder to xampp/mysql/
Copy the xampp/mysql_old/backup folder to xampp/mysql/
Copy the xampp/mysql_old/scripts folder to xampp/mysql/
Copy mysql_uninstallservice.bat and mysql_installservice.bat from xampp/mysql_old/ into xampp/mysql/
Copy xampp/mysql_old/bin/my.ini into xampp/mysql/bin
Edit xampp/mysql/bin/my.ini using a text editor like Notepad
Find skip-federated and add a # in front (to the left) of it to comment out the line if it exists
Find innodb_additional_mem_pool_size=2 and add a # in front (to the left) of it to comment out the line if it exists
Add this skip-grant-tables statement anywhere in xampp/mysql/bin/my.ini file
Save and exit the editor
Start-up XAMPP
Run xampp/mysql/bin/mysqlcheck --repair --all-databases
Run xampp/mysql/bin/mysql_upgrade.exe
Shutdown and restart MySQL (MariaDB)
This:
Note :mysql error log file: c:\xampp\mysql\bin\mysqld.exe: unknown
variable 'innodb_additional_mem_pool_size=2M' like please remove or
commented this statement in my.ini file in this path
xampp/mysql/bin/my.ini file.
also helped me except that I had the following ERROR message:
2018-03-09 12:14:56 4116 [ERROR] mysqld.exe: Table '.\mysql\user' is
marked as crashed and should be repaired 2018-03-09 12:14:56 4116
[Warning] Checking table: '.\mysql\user' 2018-03-09 12:14:56 4116
[ERROR] mysql.user: 1 client is using or hasn't closed the table
properly
Thank you.
prior to running
mysql_upgrade
do this first
mysqlcheck --repair --all-databases
I generally use a simpler method, which is to install a new version of xampp on a separate computer. Then copy the installed mysql folder over and replace the data folder with the previous version.
Then run "C:\xampp\mysql\bin\mysql_upgrade.exe"
Please follow this process
Clean shutdown
cd C:\xampp\mysql\bin
mysqladmin -uroot shutdown
cd\
Backup mysql
rename C:\xampp\mysql to C:\xampp\mysql_10.4
extract mariadb-10.8.3-winx64.zip (extract here to prevent duplicate folder)
rename mariadb-10.8.3-winx64 to mysql
copy mysql folder from zip to C:\xampp\
Copy the following from mysql_10.4 to mysql
\bin\my.ini
\backup
\data\
\scripts\
\*.*
Start mysql in xampp control panel
cd C:\xampp\mysql\bin
mysqlcheck -uroot --repair --all-databases
mysql_upgrade.exe
stop start mysql in xampp
I used the script to start mysql and wordpress through docker. (https://github.com/lamuguo/wordpress-setup/blob/master/start_wordpress.sh)
The xfguo-wp image is built based on docker official wordpress 4.3.1 repository: https://github.com/docker-library/wordpress/commit/4823a04099579f2aafb118ae8177449425cc84d2
Command to build the image: (under apache directory)
~/github/wordpress/apache$ docker build -t xfguo-wp .
However, I can't connect to mysql DB successfully, error below by "docker logs techmeetup-wordpress"
...
WordPress not found in /var/www/html - copying now...
Complete! WordPress has been successfully copied to /var/www/html
MySQL Connection Error: (2002) Connection refused
Warning: mysqli::mysqli(): (HY000/2002): Connection refused in - on line 10
Any thoughts? Feel free to comment in the code of my wordpress-setup repository.
Thanks!
Your shell script doesn't wait for the mysql container to initialise.
Try putting
sleep 10
in your shell script (start_wordpress.sh) after starting mysql and before starting wordpress. This will introduce a delay of 10 seconds before running the wordpress container, allowing it to connect to mysql.
I have installed xampp in my linux server. But during connection in command prompt i am getting below error. Please help me to fix the error.
linux-pott:/opt/lampp/var/mysql # mysqladmin -u root -p status
Enter password:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket'/var/run/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysql/mysql.sock' exists!
I had similar problem on a CentOS VPS. If MySQL won't start or keeps crashing right after it starts, try these steps:
1) Find my.cnf file (mine was located in /etc/my.cnf) and add the line:
innodb_force_recovery = X
replacing X with a number from 1 to 6, starting from 1 and then incrementing if MySQL won't start. Setting to 4, 5 or 6 can delete your data so be carefull and read http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html before.
2) Restart MySQL service. Only SELECT will run and that's normal at this point.
3) Dump all your databases/schemas with mysqldump one by one, do not compress the dumps because you'd have to uncompress them later anyway.
4) Move (or delete!) only the bd's directories inside /var/lib/mysql, preserving the individual files in the root.
5) Stop MySQL and then uncomment the line added in 1). Start MySQL.
6) Recover all bd's dumped in 3).
Good luck!
i install the zoneminder as per their instruction give by zone minder.After installation they gave a command to start zomeminder server
"zmpkg.pl start" but when i use this i got this error .
Warning, overriding installed ./zm.conf file with local copy
Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/share/perl5/ZoneMinder/Debug.pm line 265.
Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 34.
BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 34.
Compilation failed in require at /usr/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.
Zoneminder requires a web server and a background task:
service httpd start
service zoneminder start
From Start ZoneMinder
Look if there is something wrong with SQL dump import
In my case, in installation manual for Ubuntu 14.04 it is asked to import database dump with
MySQL -uroot -p < /usr/share/zoneminder/db/zm_create.sql
this failed and halted due to error with creation of 'Logs' table. I then edited the SQL file to add
DROP TABLE IF EXISTS `Logs`;
before
CREATE TABLE `Logs` (
and then imported the dump successfully. The zm service then started correctly without errors