Package Details: mysql 5.7.12-1

Git Clone URL: https://aur.archlinux.org/mysql.git (read-only)
Package Base: mysql
Description: Fast SQL database server, community edition
Upstream URL: https://www.mysql.com/products/community/
Licenses: GPL
Conflicts: mariadb
Provides: mariadb=5.7.12
Submitter: Barthalion
Maintainer: Muflone
Last Packager: Muflone
Votes: 39
Popularity: 2.191996
First Submitted: 2013-04-25 19:13
Last Updated: 2016-04-25 23:31

Required by (130)

Sources (5)

Latest Comments

fazal commented on 2016-05-24 09:17

I'm getting this error:

````
/tmp/yaourt-tmp-fazal/aur-mysql/src/mysql-5.7.12/client/auth_utils.cc: In function ‘int parse_cnf_file(std::istream&, std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >*, const string&)’:
/tmp/yaourt-tmp-fazal/aur-mysql/src/mysql-5.7.12/client/auth_utils.cc:64:75: error: no matching function for call to ‘make_pair(std::__cxx11::string&, std::__cxx11::string&)’
options->insert(make_pair<string, string >(option_name, option_value));
^
In file included from /usr/include/c++/6.1.1/bits/stl_algobase.h:64:0,
from /usr/include/c++/6.1.1/bits/char_traits.h:39,
from /usr/include/c++/6.1.1/ios:40,
from /usr/include/c++/6.1.1/istream:38,
from /usr/include/c++/6.1.1/sstream:38,
from /tmp/yaourt-tmp-fazal/aur-mysql/src/mysql-5.7.12/client/auth_utils.cc:20:
/usr/include/c++/6.1.1/bits/stl_pair.h:425:5: note: candidate: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& __x, _T2&& __y)
^~~~~~~~~
/usr/include/c++/6.1.1/bits/stl_pair.h:425:5: note: template argument deduction/substitution failed:
/tmp/yaourt-tmp-fazal/aur-mysql/src/mysql-5.7.12/client/auth_utils.cc:64:75: note: cannot convert ‘option_name’ (type ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’) to type ‘std::__cxx11::basic_string<char>&&’
options->insert(make_pair<string, string >(option_name, option_value));
^
client/CMakeFiles/mysql_install_db.dir/build.make:86: recipe for target 'client/CMakeFiles/mysql_install_db.dir/auth_utils.cc.o' failed
make[2]: *** [client/CMakeFiles/mysql_install_db.dir/auth_utils.cc.o] Error 1
CMakeFiles/Makefile2:6495: recipe for target 'client/CMakeFiles/mysql_install_db.dir/all' failed
make[1]: *** [client/CMakeFiles/mysql_install_db.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
````

basil commented on 2016-05-03 14:23

You can also use something like

TMPDIR=$HOME/scratch yaourt -S mysql

to use a different temporary directory for this install only. In this case you don't actually have to increase your /tmp partition size.

Scindix commented on 2016-05-03 11:54

There must be some kind of error in the build system. No matter how much space I free on my hard drive, I keep getting this error:

/usr/bin/ar: libsql_embedded.a: No space left on device
libmysqld/CMakeFiles/sql_embedded.dir/build.make:5938: recipe for target 'libmysqld/libsql_embedded.a' failed
make[2]: *** [libmysqld/libsql_embedded.a] Error 1
make[2]: *** Deleting file 'libmysqld/libsql_embedded.a'
CMakeFiles/Makefile2:7748: recipe for target 'libmysqld/CMakeFiles/sql_embedded.dir/all' failed
make[1]: *** [libmysqld/CMakeFiles/sql_embedded.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build mysql.
==> Restart building libmysqlclient ? [y/N]

Note that on root I have 134.92 GB free space now. I don't have external system or home partitions so why am I getting this error?

EDIT: Solved the problem myself. Although there was enough space on my hd the compiler exceeded the limit of 4GB on /tmp (set by default to the half of your RAM size). I increased it and it worked.
However it would be nice if this would be checked before the compilation process as the usage of /tmp rose to about 7GB. It would have saved me a lot of time.

Muflone commented on 2016-03-05 17:18

@graysky
the package mysql provides the libmysqlclient.so.20 library, the latest version.
If the kodi package needs an older version you should rebuild the kodi package with mysql 5.7 (if supported) or use the mysql 5.6 package.

graysky commented on 2016-03-05 11:19

Something is wrong with the libmysqlclient package as it relating to kodi. If I use this AUR package as a substitute for [extra]/mariadb and try to run kodi, I get:

/usr/lib/kodi/kodi.bin: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

Muflone commented on 2016-02-06 19:54

The boost issue was fixed, thanks to Norvald H. Ryeng of MySQL.

basil commented on 2016-02-04 20:47

This still doesn't work. Any workarounds?

Scindix commented on 2016-01-08 08:44

@tle
Having exactly the same problem...
I need libmysqlclient to install the root library (by CERN)
Is there a fast workaround that I can do to make it work? (Unfortunately I'm not really familiar with cmake, so I couldn't help myself on that one)
The only thing that I found is to open /usr/include/boost/version.hpp and change the version during installation. However that doesn't seem right even for a workaround. It compiles, but I'm not sure yet if it really works.
It would be really nice if you could submit a patch.
Update: okay it fails to compile.

/usr/include/boost/geometry/util/has_non_finite_coordinate.hpp:42:12: error: ‘has_coordinate_with_property’ is not a member of ‘boost::geometry::detail’
return detail::has_coordinate_with_property
^
/usr/include/boost/geometry/util/has_non_finite_coordinate.hpp:44:18: error: expected primary-expression before ‘,’ token
Point,
^
/usr/include/boost/geometry/util/has_non_finite_coordinate.hpp:45:34: error: expected primary-expression before ‘,’ token
detail::is_not_finite,
^
/usr/include/boost/geometry/util/has_non_finite_coordinate.hpp:50:10: error: ‘::apply’ has not been declared
>::apply(point);
^


Seems that mysql really need that old version of boost.

tle commented on 2016-01-05 12:10

Hi folks

It seems to me MySQL is quite strict on the version of boost. I failed installing with following error:

```
-- Found /usr/include/boost/version.hpp
-- BOOST_VERSION_NUMBER is #define BOOST_VERSION 106000
CMake Warning at cmake/boost.cmake:256 (MESSAGE):
Boost minor version found is 60 we need 59
Call Stack (most recent call first):
CMakeLists.txt:435 (INCLUDE)


-- BOOST_INCLUDE_DIR /usr/include
-- LOCAL_BOOST_DIR
-- LOCAL_BOOST_ZIP
-- Could not find (the correct version of) boost.
-- MySQL currently requires boost_1_59_0

CMake Error at cmake/boost.cmake:76 (MESSAGE):
You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=<directory>

This CMake script will look for boost in <directory>. If it is not there,
it will download and unpack it (in that directory) for you.

If you are inside a firewall, you may need to use an http proxy:

export http_proxy=http://example.com:80

Call Stack (most recent call first):
cmake/boost.cmake:259 (COULD_NOT_FIND_BOOST)
CMakeLists.txt:435 (INCLUDE)


-- Configuring incomplete, errors occurred!
See also "/tmp/yaourt-tmp-tle/aur-mysql/src/build/CMakeFiles/CMakeOutput.log".
```

As you can see above the version that MySQL asked for is minor 59, whilst I have 60. I am more than happy to submit a patch if no one's up for it.

twheel commented on 2015-11-11 11:44

Postfix won't start after the upgrade to mysql-5.7: "postfix: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory"

All comments