Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu: Installing using password #20

Closed
ejohansson opened this issue Jul 16, 2015 · 1 comment
Closed

Ubuntu: Installing using password #20

ejohansson opened this issue Jul 16, 2015 · 1 comment

Comments

@ejohansson
Copy link

Server:

Distributor ID: Ubuntu
Description:    Ubuntu 12.04.2 LTS
Release:    12.04
Codename:   precise

Installation procedure

apt-get install libmysqlclient-dev libpcre3-dev
git clone https://github.com/mysqludf/lib_mysqludf_preg.git
cd lib_mysqludf_preg
./configure; make  install; make installdb ; make test

Error

...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
make: *** [uninstalldb] Error 1
cd test; make test
make[1]: Entering directory `/root/mysqludf/lib_mysqludf_preg/test'
/usr/bin/mysqltest --defaults-file=/etc/mysql/debian.cnf --include=create_testdb.sql  --result-file=lib_mysqludf_preg_capture.result < lib_mysqludf_preg_capture.test
mysqltest: At line 19: query 'SELECT PREG_CAPTURE( '/(x)(?:(abc)|(xyz))(x)/' , 'xabcx' , 2 ) ' failed: 1305: FUNCTION preg_test.PREG_CAPTURE does not exist
not ok
make[1]: *** [lib_mysqludf_preg_capture.run] Error 1
make[1]: Leaving directory `/root/mysqludf/lib_mysqludf_preg/test'
make: *** [test] Error 2
...

tl;dr;
Access denied for user 'root'@'localhost' (using password: NO)

How do I configure the installation to run using a password?

@ejohansson
Copy link
Author

Duplicate of #19 read this comment

apt-get install libmysqlclient-dev libpcre3-dev
apt-get install libtool automake autoconf autogen
git clone https://github.com/mysqludf/lib_mysqludf_preg.git
cd lib_mysqludf_preg
aclocal; automake --add-missing; ./configure; make; make install; make MYSQL="mysql -p[PASSWORD_HERE]" installdb; make test;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant