Web Applications
- Web Application Planning
- PHP vs ASP.net Comparison
- Web Application Development Process
- Guide to Web Application Development
- Internet Database Development
- PHP & MySQL Development
CMS Applications
- What is Content Management System (CMS)
- Drupal vs Joomla vs WordPress CMS Comparison
- Enterprise CMS Comparison - Summary
- Enterprise Content Management System vs Open Source CMS - Detailed Guide, Security, Performance Statistics
- Pros and Cons of Wordpress, Joomla, Drupal
eCommerce Applications
- Enterprise eCommerce Platform Comparison
- Magento vs OScommerce vs Zen Cart Comparison
- Best eCommerce Software
- eCommerce SEO
Business Planning for Web Projects
- Internet / Online Business Ideas and Strategies for Entrepreneurs
- Web Development Cost Comparison
- Hiring a Web Application Company Considerations
- How to Hire a Good Web Application Development Company
- Challanges for hiring Offshore Web Development Company
- Guide to Merchant Account Payment Gateways
- e-Business Strategy and Process
Server Management and Hosting
- Dedicated / Managed Hosting Comparison
- Shared Hosting vs Managed Hosting
- Domains, DNS, Web Hosting, Email
- Domain Name System and DNS Servers
- All About Domain Name Registration
MySQL Reference for Unix, Linux and OS X
Starting MySQL Server | |
---|---|
Starting MySQL - (MySQL Install) |
sudo usr/local/mysql/bin/mysqld_safe
|
Starting MySQL - (OS X Server Install) |
sudo mysqld_safe
|
Shutting Down MySQL Server | |
---|---|
Shutting Down MySQL - (MySQL Install) |
usr/local/mysql/bin/mysqladmin -u root -p shutdown
|
Shutting Down MySQL - (OS X Server Install) |
mysqladmin -u root -p shutdown
|
Setting Admin Password for MySQL Server | |
---|---|
Setting MySQL Server Admin Password - (MySQL Install) |
/usr/local/mysql/bin/mysqladmin -u root password <password>
|
Setting MySQL Server Admin Password - (OS X Server Install) |
mysqladmin -u root password <password>
|
Starting MySQL Client | |
---|---|
Starting MySQL Client - (MySQL Install) |
/usr/local/mysql/bin/mysql -u root -p
|
Starting MySQL Client - (OS X Server Install) |
mysql -u root -p
|
MySQL Additional Security Implementation and Consideration | |
---|---|
Use " mysql" configuration database
|
use mysql |
Delete "test" database if you are not |
drop database test; |
Granting Privilage to a User | |
---|---|
Grand select and insert privilages to the |
grant select, insert on employee.* to Bob_user@localhost identified by 'password'; |
Grand all privilages to the USER: |
grant all on employee.* to Bob_user@localhost identified by 'password'; |
Showing Privilages for a User (I have not seen a statement for showing all privilages for all users) | |
---|---|
Show privilages for USER: "Bob_user" |
show grants for Bob_user@localhost; |
Show privilages for root user. |
show grants for root@localhost; |
Revoking Privilage from a User | |
---|---|
Revoking select and insert priviledges |
revoke select, insert on employee.* from Bob_user@localhost; |
Revoking all privilages from the USER: |
revoke all on employee.* from Bob_user@localhost; |
Backing up and Restoring MySQL database(s) | |
---|---|
To backup a database called "employee.db" |
open a new shell and type: |
To restore the backup database called |
login to mysql client: |
To backup all of the databases to a file |
open a new shell and type: |
To restore the backup database called |
open a new shell and type: |
Setting PATH for mysql on OS X | |
---|---|
To add a MySQL path so you don't need |
edit the file: /etc/profile and update the path by adding: |
Displaying MySQL Configuration, Running Processes and Status | |
---|---|
Show MySQL Variables and Configuration |
login to mysql client and type: |
Show MySQL Running Processes from mysql |
login to mysql client and type: |
Show MySQL Running Processes from shell# |
login to mysql client and type: |
Show MySQL status |
login to mysql client and type: |
Setting MySQL Configuration and Variables | |
---|---|
Setting MySQL Variables |
use the above show variables; to display variables and
|
Setting MySQL configuration using "my.cnf" |
MySQL will look inside the /etc for "my.cnf" file.
Or search for such a file by openning a new shell and type:
Create the file "my.cnf" and copy it inside the /etc folder.
[mysqld] Put the new "my.cnf" in /etc folder and shut down and restart mysql server.
You can display the current configuration and after update configuration by typing: |
Fixing database permissions issues with mysqls | |
---|---|
Fix mysql data permission issues |
sudo chown -R mysql /usr/local/mysql/data |
Changing MySQL Root Password | |
---|---|
Changing MySQL Root Password |
su -l mysql |
Mac OS X Server 10.4: Issues connecting PHP to MySQL | |
---|---|
When running MySQL and PHP on the same Mac OS X 10.4 server, you may find that PHP cannot connect to MySQL. When PHP is communicating with a MySQL server on the same host, it uses a socket file to communicate, and looks for it at /tmp/mysql.sock. On Mac OS X Server 10.4, MySQL creates this socket file at /var/mysql/mysql.sock. To resolve this issue, you can either change the location where MySQL creates its socket file, or modify the location where PHP looks for the file. Please note that the first option is less secure than the second. I. To change the location where MySQL creates its socket file, do this:
II. To change the location where PHP looks for the socket file, follow these steps:
|
Comentum Corp
6222 Ferris Sq.
San Diego, CA 92121
Phone: 619-990-1212
Hours: Mon. - Fri., 9 a.m. - 5 p.m. PST
Contact Us »
Mobile App Development
iPhone, Google Android, BlackBerry, Windows Mobile
In-house development team.
San Diego, CA, USA.
Web App Estimator
Select and unselect modules such CMS or eCommerce for your web application and watch the cost update in real time.
Try It »