Страница 1 из 1

/usr/ports/databases/mysql-scripts*

Добавлено: 2008-01-15 13:04:14
lykich
Здравствуйте, есть в портах /usr/ports/databases/mysql-scripts* , я так понимаю скрипты для создания баз данных и прочих админских дел,
кто нибудь инфы может подкинуть по этой теме.

Re: /usr/ports/databases/mysql-scripts*

Добавлено: 2008-01-15 21:51:05
serge

Код: Выделить всё

SCRIPTS=        msql2mysql mysql_fix_extensions mysql_setpermission \
                mysql_secure_installation mysql_zap mysqlaccess \
                mysql_convert_table_format mysql_find_rows mysqlhotcopy \
                mysqldumpslow mysql_explain_log mysql_tableinfo mysqld_multi

Re: /usr/ports/databases/mysql-scripts*

Добавлено: 2008-01-16 9:46:23
lykich
С какого места ето?

Re: /usr/ports/databases/mysql-scripts*

Добавлено: 2008-01-18 20:45:09
serge

Код: Выделить всё

cat /usr/ports/databases/mysqlХХ-scripts/Makefile
а дальше по include в Makefile, в нем ищи секцию SCRIPTS.

Re: /usr/ports/databases/mysql-scripts*

Добавлено: 2008-01-19 18:05:06
lykich
# vi Makefile

# New ports collection makefile for: MySQL-scripts
# Date created: Mon Feb 23 15:01:35 CET 2004
# Whom: Alex Dupre <ale@FreeBSD.org>
#
# $FreeBSD: ports/databases/mysql50-scripts/Makefile,v 1.10 2007/09/08 00:54:28
linimon Exp $
#

PORTNAME= mysql
PKGNAMESUFFIX= -scripts

COMMENT= Multithreaded SQL database (scripts)

MASTERDIR= ${.CURDIR}/../mysql50-server

PKGINSTALL= mustnotexist
PKGMESSAGE= mustnotexist
PLIST= ${PKGDIR}/pkg-plist.scripts

SCRIPTS_ONLY= yes
USE_PERL5= yes

.include "${MASTERDIR}/Makefile"
Interrupted

Re: /usr/ports/databases/mysql-scripts*

Добавлено: 2008-01-20 14:21:48
serge

Код: Выделить всё

.include "${MASTERDIR}/Makefile"
Там все остальное.

Re: /usr/ports/databases/mysql-scripts*

Добавлено: 2008-01-28 13:04:12
lykich
# /usr/local/bin/mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? [Y/n]Y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!


By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n]Y
... Success!

Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]Y
... Success!

By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n]Y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] Y
... Success!

Cleaning up...


All done! If you've completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!