Mafiree

Mafiree

Intensely Interested in MySQL

How to Start and Stop MySQL

Hi Guys,
There are several ways to start and stop mysql. Let me share the things that I know.
Starting the mysql server:
           Server~Name ] # mysqld_safe –-defaults-file =  /path/to/my.cnf -–datadir = path/to/data/directory  –basedir = /path/to/base/directory –user = mysql &
Note : mysqld and mysqld_safe are not the same.
“mysqld” is the MySQL server daemon program also known as [...]

How to login to a remote MySQL Db?

Consider 10.168.1.1 as your local machines IP address and 10.168.1.2 as the remote host’s IP that you intend to connect.

First thing that you need to do is to check whether port 3306 in the remote host is open.You can use telnet command to check it.

localhost$] telnet 10.168.1.2 3306
Trying 10.168.1.2…
Connected to remote6.106 (10.168.1.2).
Escape character is ‘^]’.
8
5.1.36-logJU[G1_k{BI*3`m"]0w’Z

If [...]

Resetting MySQL root password

There are two ways to reset MySQL root password as follows:
FIRST WAY

Stop the server
Open a text file, give the below statement and save the file (for example the filename is /tmp/newpass.txt).

UPDATE mysql.user SET Password=PASSWORD(’YourNewPassword’) WHERE User=’root’ and host=’localhost’;
FLUSH PRIVILEGES;

Now, start the server with –init-file option

mysqld_safe –init-file=/tmp/newpass.txt &

You [...]

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysql.sock’

When I tried to connect mysqld server, I got this error.
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysql.sock’
1. Check whether mysqld server is running or not, using the below command
ps -ef | grep mysql
If mysqld is running, then check the socket path in the .cnf file and give the correct path [...]

Impossible WHERE noticed after reading const tables

I ran a explain plan in MySQL and i got
mysql> explain SELECT users.user_id FROM friends INNER JOIN users ON friends.friend_to = users.user_id WHERE friends.friend_from=108643 and friends.friend_to=108643;
+—-+————-+——-+——+—————+——+———+——+——+—————————————————–+
| id | select_type | table | type | possible_keys | key  | key_len | ref  | rows | Extra                      [...]

mysqld_safe The file /usr/local/mysql/bin/mysqld does not exist or is not executable. Please cd to the mysql installation directory and restart this script from there as follows: ./bin/mysqld_safe&

I started MySQL server like this,
/usr/local/src/mysql-5.1.42-linux-x86_64-glibc23/bin/mysqld_safe  –datadir=/usr/local/src/mysql-5.1.42-linux-x86_64-glibc23/data –basedir=/usr/local/mysql-5.1.42-linux-x86_64-glibc23 &
I got the error shown below
mysqld_safe The file /usr/local/mysql/bin/mysqld does not exist or is not executable.
and I fixed by entering in to MySQL installed directory and started the server
cd /usr/local/src/mysql-5.1.42-linux-x86_64-glibc23
./bin/mysqld_safe  –datadir=/usr/local/src/mysql-5.1.42-linux-x86_64-glibc23/data –basedir=/usr/local/mysql-5.1.42-linux-x86_64-glibc23 &

MySQL Cluster Query Execution

Hi,
MySQL Cluster executes the queries depending on the below type of scan’s it does

Primary key lookup
Unique key lookup
Ordered index scan (i.e., non-unique indexes that use T-trees)
Full table scan

Let’s say you have 4 data nodes in your cluster (NoOfReplicas=2). This means you have 2 node groups and each one has half the data. Cluster uses a [...]

show procedure status or mysqldump with routines causing mysqld restart in 5.1.40 version

Hi,
When we take a mysqldump with routines or show procedure status where Db=’dbname’;
The mysqld server got an error like “Lost connection to mysqld server”, when we login into server the will be running and it got restarted.
To fix this, upgrade the db by using mysql_upgrade and it got fixed for me.
Thanks,
Suresh Kuna

Lost connection to MySQL server

This type of error may occur in the below scenarios.
1) It indicates network connectivity trouble. If the error message includes “during query” then we have to look at the query and the number of rows being sent.
Then try increasing “net_read_timeout” variable from its default value.
2) It can happen when the client is attempting the initial [...]

Error: data file /mysql/data/mysqld/ibdata1 is of a different size

Hi,
If the Mysql is not starting and the error log consists of the below error after the configuration of a slave with the tar file of master.
081022 6:19:02 InnoDB: Warning: shutting down a not properly started
InnoDB: or created database!
081022 6:19:02 /usr/local/mysql4020/libexec/mysqld: Shutdown Complete
InnoDB: Error: data file /mysql/data/mysqld/ibdata1 is of a different size
InnoDB: 128000 pages (rounded [...]

?>
  • bea spells a lot
  • excellent
  • tea party table settings
  • freida pinto jeansfreida pinto kissing
  • bengals hard knocks episode 1
  • new england patriots helmet
  • ivory
  • bea 2011 map
  • randy moss wallpaper
  • bilge
  • unlimited
  • bora
  • zara phillips tongue
  • tea party for kids
  • connecticut state parks
  • mtv youtube channel
  • tea party zombies download
  • vince young status
  • bea 71 16
  • benjamin
  • watcher
  • gamestop
  • search engines internet
  • randy moss future
  • 4pm cspancspan area 51cspan 90.1
  • search vim
  • bayview
  • inscription
  • search engines 9
  • ducati
  • survive
  • bangles eternal flame mp3bengals forum
  • hp support center
  • greg olsen boulder
  • bea 0b0 105
  • yourself
  • zara phillips yachtzara phillips zimbio
  • search engines images
  • battleship vittorio veneto
  • zara phillips engagement ring
  • bea zuberbühler
  • battleship layout
  • vince young drunk
  • battleship yamato wreck
  • search with image
  • 1984
  • la ink 04x01
  • terrorist
  • bengals arrests
  • hp support center
  • la ink youtube pixie
  • lillian
  • liner
  • chad ochocinco bears
  • new england patriots 1997 roster
  • connecticut 104.1
  • gets
  • connecticut renaissance faire
  • new england patriots offense
  • hp support contact number
  • new england patriots wiki
  • chicago bears zip hoodie
  • beau coup
  • dracula
  • grooves
  • hellen
  • bea nipa
  • gregg olsen books
  • battleship galactica
  • tea party ribbons
  • lense
  • below
  • tea party agenda
  • search tumblr
  • search 3 bodybuilding other index
  • freida pinto 1995
  • battleship ipad
  • kenneth
  • zara phillips facebookzara phillips gossip
  • zara phillips husband
  • la ink games online
  • vince young rivals
  • search 50 cent
  • vince young z
  • cspan question timecspan radio
  • cspan facebook
  • vince young yahoo stats
  • mtv 30 years
  • chad ochocinco quits football
  • la ink ink
  • vince young 99 yard video
  • bea exhibitors
  • chicago bears garter
  • shakes
  • worcester
  • vince young jersey texas
  • lodging
  • bea diy
  • chad ochocinco yesterday
  • search xml file
  • connecticut quarter error
  • search engines cookiessearch engines definition
  • battleship wilmington nc
  • new england patriots 98.5
  • search operatorssearch people
  • grams
  • battleship kirishima
  • new england patriots jake locker
  • nightmare
  • dist 95
  • vince young 2008
  • bengals usa
  • battleship egg hunt
  • counters
  • bea fox
  • dis 0 0.9
  • connecticut 30 news
  • new england patriots 84
  • blotter
  • hp support repair
  • tea party obama
  • tea party manifesto
  • mtv dougie
  • sniffer
  • vince young injury
  • new england patriots 98.5
  • cougar
  • search jail inmates
  • search engines questions
  • chicago bears 09 draft
  • zara phillips guest list
  • search in vi
  • bea rims
  • sleepy
  • membership
  • chicago bears 08 record
  • chicago bears bleacher report
  • battleship classes
  • authentication
  • mtv 25 lame
  • ultimate
  • chicago bears training camp
  • search cfisd.net
  • search engines and flash
  • dragster
  • pflugerville
  • la ink 03x05
  • dollars
  • aires
  • guernsey
  • blak
  • new england patriots needs
  • vince young usc
  • chad ochocinco sisterchad ochocinco twitter
  • randy moss height
  • mtv music awards
  • la ink season 5
  • search lsu.edu
  • battleship aurora
  • chad ochocinco free agent
  • tea party gifts
  • new england patriots underwear
  • hp support helpline
  • zara phillips youtube 2009
  • search 32
  • crock
  • bengals record 2010
  • chicago bears expo 2011
  • new england patriots xxl
  • dated
  • chicago bears schedule 2011
  • thom
  • zara phillips baby
  • godaddy
  • c span 4 to 5
  • skid
  • search 5500
  • randy moss 98 vikings
  • search engines 2008
  • randy moss football cards
  • vince young redskins
  • la ink 105
  • kaiser
  • connecticut 7 day weather forecast
  • bea 4603
  • hp support quick test pro
  • search comcast net
  • greg olsen university of miami
  • beamerbea france
  • hp support chat
  • search engines other than google