|
1 | 1 | #!/bin/bash |
| 2 | +# lib_mysqludf_sys - a library with miscellaneous (operating) system level functions |
| 3 | +# Copyright (C) 2007 Roland Bouman |
| 4 | +# Copyright (C) 2008-2009 Roland Bouman and Bernardo Damele A. G. |
| 5 | +# web: http://www.mysqludf.org/ |
| 6 | + |
| 7 | +# |
| 8 | +# This library is free software; you can redistribute it and/or |
| 9 | +# modify it under the terms of the GNU Lesser General Public |
| 10 | +# License as published by the Free Software Foundation; either |
| 11 | +# version 2.1 of the License, or (at your option) any later version. |
| 12 | +# |
| 13 | +# This library is distributed in the hope that it will be useful, |
| 14 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | +# Lesser General Public License for more details. |
| 17 | +# |
| 18 | +# You should have received a copy of the GNU Lesser General Public |
| 19 | +# License along with this library; if not, write to the Free Software |
| 20 | +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
2 | 21 |
|
3 | 22 | echo "Compiling the MySQL UDF" |
4 | 23 | make |
|
12 | 31 | echo "MySQL UDF compiled successfully" |
13 | 32 | fi |
14 | 33 |
|
15 | | -echo -e "\nPlease provide your MySQL root password and press RETURN: \c" |
16 | | -read PASSWORD |
| 34 | +echo -e "\nPlease provide your MySQL root password" |
17 | 35 |
|
18 | | -mysql -u root --password=$PASSWORD mysql < lib_mysqludf_sys.sql |
| 36 | +mysql -u root -p mysql < lib_mysqludf_sys.sql |
19 | 37 |
|
20 | 38 | if test $? -ne 0; then |
21 | 39 | echo "ERROR: unable to install the UDF" |
|
0 commit comments