mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	 07238bab28
			
		
	
	07238bab28
	
	
	
		
			
			the installation to make sure the privilege tables are being
   installed even if the DNS configuration is broken, which seems
   to be quite common (reverse lookups to "hostname" fail).
   This should resolve the problem many Mac OS users experience
   ("Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't
   exist") when they try to start MySQL after installing the PKG.
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			446 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			446 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| #
 | |
| # postinstall - this script will be executed after the MySQL PKG
 | |
| # installation has been performed.
 | |
| #
 | |
| # This script will install the MySQL privilege tables using the
 | |
| # "mysql_install_db" script and will correct the ownerships of these files
 | |
| # afterwards.
 | |
| #
 | |
| 
 | |
| if cd @prefix@ ; then
 | |
| 	if [ ! -f data/mysql/db.frm ] ; then
 | |
| 		./scripts/mysql_install_db -IN-RPM
 | |
| 	fi
 | |
| 
 | |
| 	if [ -d data ] ; then
 | |
| 		chown -R @MYSQLD_USER@ data
 | |
| 	fi
 | |
| else
 | |
| 	exit $?
 | |
| fi
 |