How can i install Percona's pt-archiver for XAMPP? - mysql

I need to archive my MySQL-database every year and I found the Percona Toolkit. But I want to try it on XAMPP first and not on the actual server. I used the Shell from the XAMPP Control Panel.
First, I installed pt-archiver with the command:
wget percona.com/get/pt-archiver --no-check-certificate
The installation was successful. I tried my first dry run:
pt-archiver --source h=127.0.0.1,D=db_ilb,t=erstbegegnung --file 'C:\xampp\Archive\%Y-%m-%d-%D.%t' --where "1=1" --limit 1000 --commit-each --dry-run
and it threw an error:
install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.
Compilation failed in require at (eval 14) line 3.
at ./pt-archiver line 2499.
After trying to install DBD::mysql via CSPAN, another error was thrown:
Warning: No success on command[C:\xampp\perl\bin\perl.exe Makefile.PL]
CPAN: YAML::XS loaded ok (v0.39)
MICHIELB/DBD-mysql-4.041.tar.gz
C:\xampp\perl\bin\perl.exe Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Stopping: 'install' failed for 'DBD::mysql'.
Could not read metadata file. Falling back to other methods to determine prerequisites
I don't know what to do next... If you have any other suggestions for archiving, let me know :)

Related

Can't start mysql (Homebrew Mac M1)

I have a error when i try to run the MYSQL server
When i try to run with brew services start mysql, return me this error
brew services start mysgl
Bootstrao failed: 5: Inout/outout error
Try re-running the command as root for richer errors
Error: Failure while executina;
`/bin/launchetl bootstrap qui/501 /Users/<user>
/Library/LaunchAgents/homebrew.mxcl.mysql.plist`exited with 5
If i ran this with sudo don't work
%
sudo brew services start mysgl
Warning: Taking root:admin ownership of some mysql paths:
/opt/homebrew/Cellar/mysql/8.0.30_1/bin
/opt/homebrew/Cellar/mysq1/8.0.30_1/bin/mysqld_safe
/opt/homebrew/opt/mysql
/opt/homebrew/opt/mysql/bin
/opt/homebrew/var/homebrew/linked/mvsal
This will require manual removal of these paths using
sudo rm' on
brew upgrade/reinstall/uninstall.
Warning: mysql must be run as non-root to start at user login!
/Library/LaunchDaemons/homebrew.mxcl.mysql.plist:servic ealready bootstrapped
Bootstrap failed: 37: Operation already in progress
Error: Failure while executing: `/bin/launchctl bootstrap system /Library/LaunchDaemons/homebrew.mxcl.mysql.plist`exited with 37
<user>~ % brew services list
Name status User File
mysql stopped root ~/Librarv/LaunchAgents/homebrew.mxcl.mvsal.olist
I was try to unistall and install the HomeBrew and the MYSQL again but always had the same ¡s errors.
Thanks for the help.
Not a real answer:
If it is not absolutely required for you to run it as a native process, run it in docker.
Besides that: mysql wants to run as root, as the error message says. Maybe you need to correct the mode bits. Inspect the brew post installation steps carefully, usually there is a hing or command to execute.

Using Node to Run Compound repo

I'm following the instructions found here:
https://github.com/compound-finance/compound-protocol
I've ran:
git clone https://github.com/compound-finance/compound-protocol
cd compound-protocol
yarn install --lock-file
yarn test
yarn run v1.22.11
$ ./script/test
Unknown option: p
Unknown option: p
Type shasum -h for help
Type shasum -h for help
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Why do I keep getting this error with unknown option p
Try to use Node.js version 12. NVM is a great tool to quickly switch between versions of Node on the command line. https://nvm.sh

How to resolve FATAL ERROR: Could not find /usr/bin/mysql mariadb on Arch/Manjaro Linux?

I am accidentally delete /usr/bin/mysql from my directory. It make an error when I run mysql_secure_installation and produce following error message.
FATAL ERROR: Could not find /usr/bin/mysql
If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.
If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location
I have already tried to uninstall mariadb using sudo pacman -Rns mariadb and installing it again, but /usr/bin/mysql not generate. Are someone already face same problem before ?

mysqldump: Couldn't execute 'SHOW PACKAGE STATUS WHERE Db = when rake db:migrate finishes migration

I am running tests on Codebuild using Docker. I am using MySQL 5.7 community server using mysql docker image. In my dockerfile, I am using following apt-get update command to get default-mysql-client.
RUN apt-get install -qq -y build-essential locales nodejs software-properties-common ffmpeg pngquant procps vim default-mysql-client mycli tig httpie > /dev/null
But when migrations run and about to finish it raises error and terminates
mysqldump: Couldn't execute 'SHOW PACKAGE STATUS WHERE Db = 'development'': You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'PACKAGE STATUS WHERE Db = 'development'' at line 1 (1064)
rake aborted!
failed to execute: `mysqldump`
Please check the output above for any errors and make sure that `mysqldump` is installed in your PATH and has proper permissions.
It was working fine previously and just started since yesterday on Codebuild. Can anybody help regarding this ?
I think Codebuild has migrated to buster debian build and now
default-mysql-client is fetching mariadb-client-10.3 instead of mariadb-client-10.1 and due to that this issue is getting raised.
Moreover, I have tried explicitly replacing default-mysql-client with mariadb-client-10.1 but codebuild fails to find the package and that makes sense since mariadb-client-10.1 is not available for buster.

Error running mysql_install_db: could not find ./bin/my_print_defaults

I seem to be having an issue getting MySQL 5.6.1.5 to install from Source. I am running RHEL 6.
I was able to perform the cmake, make, and make install without issues.
I am attempting to run the mysql_install_db binary and when I do I get the following error:
Fatal ERROR: Could not find ./bin/my_print_defaults
If you compiled from source, you need to run 'make install' to copy the software
into the correct location ready for operation.
If you are using a binary release, you must either bat at the top level of the
extracted archive, or pass the --basedir option pointing to that location.
So I did a check for my_print_defaults using which my_print_defaults, unfortunately it was not found on my machine.
I did a locate my_print_defaults as well just for the heck of it and said it was located in /usr/bin/my_print_defaults, however, when I checked /usr/bin for the binary, it was not actually there.
I would try to use mysql_install_db --basedir=/usr/bin but I know this won't work as the which and locate commands confirm my_print_defaults isn't on my machine.
I looked at mysql_install_db giving error, but that error was not similar to this one.
Please ignore question, I didn't bother to try running find / -name my_print_defaults and found it in /usr/local/mysql/bin/
I searched packages for my_print_defaults with
apt-file search my_print_defaults
If my_print_defaults is missing on your system (which my_print_defaults), first find out which db is installed with:
dpkg -l |grep -E 'maria|mysql'|grep ii|grep server
If you have installed mariadb, try reinstall mariadb:
sudo apt install --reinstall mariadb-server-core-10.1
If you don't find a solution with mariadb, swap back to mysql with
sudo apt install mysql-server