Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/database In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv20479/10.4/unstable/main/finkinfo/database
Modified Files: mysql.info Log Message: Conditionalized mysql_install_db in PostInst; Fixed some dependency; Updated some lines in DescDetail. Index: mysql.info =================================================================== RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/database/mysql.info,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- mysql.info 3 Apr 2007 05:05:55 -0000 1.10 +++ mysql.info 5 Apr 2007 05:37:55 -0000 1.11 @@ -1,7 +1,7 @@ Info2:<< Package: mysql%type_pkg[-ssl] Version: 5.0.38 -Revision: 1001 +Revision: 1002 Description: Open Source SQL database License: GPL/LGPL Maintainer: Todai Fink Team <[EMAIL PROTECTED]> @@ -219,7 +219,7 @@ Depends: %N15-shlibs (= %v-%r) BuildDependsOnly: True Conflicts: %{Ni} (<= 3.23.56-1), %{Ni}-dev, %{Ni}12-dev, %{Ni}14-dev, %{Ni}15-dev, %{Ni}-ssl15-dev - Replaces: %{Ni} (<= 5.0.34-1006), %{Ni}-dev, %{Ni}12-dev, %{Ni}14-dev, %{Ni}15-dev, %{Ni}-ssl15-dev + Replaces: %{Ni} (<= 5.0.34-1006), %{Ni}-ssl (<= 5.0.34-1006), %{Ni}-dev, %{Ni}12-dev, %{Ni}14-dev, %{Ni}15-dev, %{Ni}-ssl15-dev Files: << include lib/mysql/*.a @@ -254,7 +254,7 @@ Package: %N-client Depends: %N15-shlibs (= %v-%r), readline5-shlibs (>= 5.0-1004) Conflicts: %{Ni} (<= 3.23.54a-2), %{Ni}-client, %{Ni}-ssl-client - Replaces: %{Ni} (<= 5.0.34-1006), %{Ni}-client, %{Ni}-ssl-client + Replaces: %{Ni} (<= 5.0.34-1006), %{Ni}-ssl (<= 5.0.34-1006), %{Ni}-client, %{Ni}-ssl-client Files: << bin/myisam_ftdump bin/mysql @@ -278,6 +278,7 @@ bin/mysqltestmanager-pwgen bin/mysqltestmanagerc share/man/man1/mysql.1 + share/man/man1/mysqlaccess.1 share/man/man1/mysqladmin.1 share/man/man1/mysqlcheck.1 share/man/man1/mysqldump.1 @@ -301,11 +302,16 @@ if [ -z "$data_dir" ]; then data_dir=%p/var/mysql fi - - # create initial database - # it is safe to call mysql_install_db even if a db is already present - %p/bin/mysql_install_db --user=mysql - chown -R mysql:mysql $data_dir/mysql $data_dir/test + + if [[ -e "$data_dir"/mysql || -e "$data_dir"/test ]]; then + echo "$data_dir/mysql found. If you're upgrading from older version" + echo "of MySQL, you should run %p/bin/mysql_upgrade_shell script." + echo "See: http://dev.mysql.com/doc/refman/5.0/en/upgrade.html" + else + # create initial database + %p/bin/mysql_install_db --user=mysql + chown -R mysql:mysql $data_dir/mysql $data_dir/test + fi # update daemonic init script if necessary daemonic install mysql @@ -336,22 +342,10 @@ 'mysqladmin -u root password your-new-password' or 'mysqladmin -u root -h localhost -p password your-new-password' # -In general, you should do the following when upgrading to MySQL 4.1 from 4.0: - -Important note: MySQL 4.1 stores table names and column names in UTF8. If you -have table names or column names that use characters outside of the standard -7-bit US-ASCII range, you may have to do a mysqldump of your tables in MySQL -4.0 and restore them after upgrading to MySQL 4.1. The symptom for this -problem is that you get a table not found error when trying to access your -tables. In this case, you should be able to downgrade back to MySQL 4.0 and -access your data. - -After upgrading, update the grant tables to have the new longer Password -column that is needed for more secure handling of passwords. The procedure -uses mysql_fix_privilege_tables and is described in section 2.10.7 Upgrading -the Grant Tables. If you don't do this, MySQL will not us the new more -secure protocol to authenticate. - +If you are upgrading from MySQL 4.1, you should update your tables using +'mysql_upgrade_shell' script. For more information about upgrading, +please read "2.4.16. Upgrading MySQL" in MySQL 5.0 Reference Manual. +# You can start the MySQL server manually using 'mysqld_safe --user=mysql &' or you can run 'daemonic enable mysql' to create a StartupItem for it. @@ -364,7 +358,6 @@ http://homepage.mac.com/macgurutemple/downloads.html Previous package revisions by Christoph Pfisterer and Peter O'Gorman. -http://fink.sourceforge.net << DescPort: << Supports Darwin out of the box, although the libtool scripts are ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-commits