Quantcast
Channel: Mysql – S V N Labs Softwares
Browsing latest articles
Browse All 25 View Live

Lab Tips

Database: 1. Delete all information from databse related to, if deleting user or any content from CMS. 2. Use PDO, ADO, Pear, Zend etc. library to connect to database. 3. Take regular backup for...

View Article


Mysql useful queries

Age: Select DATE_FORMAT (NOW(), ‘%Y’) – DATE_FORMAT(BirthDate, ‘%Y’) – (DATE_FORMAT(NOW(), ’00-%m-%d’) < DATE_FORMAT(BirthDate, ’00-%m-%d’)) AS Age From tbl_member where 1; Change collation: Alter...

View Article


Better Solution for Filtering Bad Words in PHP

I was searching for filtering Bad Words from my site…… I have visited so many links on google but…. 🙁 Here is my simple logic for filtering Bad Words from site or any search engine First you have to...

View Article

Installing XAMPP in Linux

What is XAMPP ? XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. LAMPP (XAMPP for Linux) is very easy to install and to use – just download, extract and start. Download...

View Article

Upload Large Database Table to Server

Hello Friends, Sometime we want to upload large database table to server but phpMyAdmin have limit to upload SQL large *.sql files.. When we create database table “svnlabs” from mysql admin server make...

View Article


PHP ORM – Create select box with mysql set or enum

PHP have rich set of functions to solve real time problems in programming and web development.. thanks to Rasmus Lerdorf eval — Evaluate a string as PHP code A SET datatype can hold any number of...

View Article

Installing Apache, MySQL, PHP in CentOS 5.5 on Rackspace Cloud

Most of cloud users prefer Rackspace Cloud for its better service and cost effectiveness… All commands are performed as root to install Apache, MySQL, PHP in CentOS 5.5 Server on Rackspace Cloud....

View Article

CentOS Latest RPM for PHP MySQL

[root@svnlabs ~]# yum install php php-soap php-xmlrpc php-imap php-mcrypt php-mhash php-mbstring php-mysql php-xml php-gd php-cli php-common php-api Loaded plugins: fastestmirror, security Loading...

View Article


Upgrade PHP & MySQL on Plesk 10

1. Stop Running Apache & MySQL Server # /etc/init.d/mysqld stop # /etc/init.d/httpd stop 2. Set up the atomic channel # wget -q -O – http://www.atomicorp.com/installers/atomic | sh 3. Upgrade to...

View Article


Replace phpMyAdmin by Adminer

Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. It consist of a single file ready to deploy to the target server. Adminer is available for MySQL, PostgreSQL,...

View Article

Recover MySQL root Password

1. Stop the MySQL server. # /etc/init.d/mysql stop 2. Start the MySQL server process with the –skip-grant-tables option so that it will not prompt for password. # mysqld_safe –skip-grant-tables &...

View Article

Importing data from non-wordpress mysql database

You have to create an import php file to get the Questions/Answers from a non-wordpress database and bring them into posts in wordpress. Question Table <?php /// non-wordpress database connection...

View Article

Install Apache, MySQL, PHP 5.6 on Centos 7

Install Apache # yum update # yum install httpd # systemctl start httpd.service Now Browser your Apache Server http://Server_IP_address/ Enable Apache to start at server boot # systemctl enable...

View Article

Browsing latest articles
Browse All 25 View Live