Giter Site home page Giter Site logo

Comments (6)

ShakyShip avatar ShakyShip commented on July 24, 2024

You can try open /var/log/mysqld.log
This is my output when execute 'pwd'

mysql> select sys_exec('pwd');
+-----------------+
| sys_exec('pwd') |
+-----------------+
|               0 |
+-----------------+
1 row in set (0.01 sec)

and this from /var/log/mysqld.log

[root@db ~]# tail /var/log/mysqld.log
            s.parentNode.insertBefore(sc, s);
        })();
        _comscore.push({ c1: "2", c2: "17440561" });
        _qevents.push({ qacct: "p-c1rF4kxgLUzNc" });
    </script>
    </body>
</html>Tue Aug  4 12:24:02 WIB 2015
Tue Aug  4 12:24:04 WIB 2015
/var/lib/mysql
/var/lib/mysql

and you can try my Makefile setting if you install it from install.sh

gcc -m64 -fPIC -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o /usr/lib64/mysql/plugin/lib_mysqludf_sys.so

from lib_mysqludf_sys.

vanhiepdam avatar vanhiepdam commented on July 24, 2024

Can you give me the way to install mysqludf
I'm using CentOS 7

from lib_mysqludf_sys.

elegos avatar elegos commented on July 24, 2024

Hello vanhiepdam,

Just compile with the provided command (gcc) and symlink the .so file in the MySQL's plugins folder. Then install it via the SQL commands

from lib_mysqludf_sys.

gmarsico avatar gmarsico commented on July 24, 2024

http://www.tldp.org/LDP/abs/html/exitcodes.html

from lib_mysqludf_sys.

yamelyamel16 avatar yamelyamel16 commented on July 24, 2024

sys_eval is returning NULL because the function is only returning int, so drop it and the create it again with the following syntax:
CREATE FUNCTION sys_eval RETURNS string SONAME 'lib_mysqludf_sys.so';

from lib_mysqludf_sys.

SimoneCammarano avatar SimoneCammarano commented on July 24, 2024

sys_eval is returning NULL because the function is only returning int, so drop it and the create it again with the following syntax:
CREATE FUNCTION sys_eval RETURNS string SONAME 'lib_mysqludf_sys.so';
@yamelyamel16 you save me! Thanks a lot!

from lib_mysqludf_sys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.