<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Data Bases &#8211; VeriTeknik</title>
	<atom:link href="https://www.veriteknik.net.tr/en/category/knowledge_base/databases/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.veriteknik.net.tr/en/</link>
	<description>VeriTeknik Bilişim &#124; VeriTeknik Bilişim</description>
	<lastBuildDate>Wed, 07 Nov 2018 20:43:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Compile and build Apache + MySQL + PHP from the source</title>
		<link>https://www.veriteknik.net.tr/en/compiling-apache-mysql-php-source/</link>
					<comments>https://www.veriteknik.net.tr/en/compiling-apache-mysql-php-source/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Thu, 31 Oct 2013 19:56:47 +0000</pubDate>
				<category><![CDATA[httpd]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Linux Optimization]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Centos6]]></category>
		<category><![CDATA[CentOS6.4]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[httpd-2.2.25]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql-5.6.14]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP 5.5.5]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[stratch]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=896</guid>

					<description><![CDATA[<p>This is a complete working solution to build Apache (httpd-2.2.25), MySQL (MySQL-5.6.14) and PHP (PHP-5.5.5) from the sources. Article tested many times on CentOS 6.4 and you can directly copy &#38; paste the commands below to build the lastest releases. We advise you to use a freshly installed OS as compiling may corrupt or delete [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/compiling-apache-mysql-php-source/">Compile and build Apache + MySQL + PHP from the source</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This is a complete working solution to build Apache (httpd-2.2.25), MySQL (MySQL-5.6.14) and PHP (PHP-5.5.5) from the sources. Article tested many times on CentOS 6.4 and you can directly copy &amp; paste the commands below to build the lastest releases. We advise you to use a freshly installed OS as compiling may corrupt or delete your existing structure or data. The solution both tested on a clean dedicated server and a KVM virtualized VPS.</p>
<p>Before you begin your compilation you should need additional header files and libraries required, please use the following code to install pre-requisities, don&#8217;t delete them as you would definitely need them when you upgrade to new releases also:</p>
<pre class="brush: shell; gutter: true; first-line: 1">yum install make gcc automake zlib-devel bison cmake libtool wget gcc-c++ unzip ncurses-devel openssl-devel pcre-devel libxml2-devel curl-devel gd-devel libxslt-devel</pre>
<h2>Building &amp; Installing Apache prefork</h2>
<p>download the latest release of Apache Web Server and unpack:</p>
<pre class="brush: shell; gutter: true; first-line: 1">wget http://ftp.itu.edu.tr/Mirror/Apache//httpd/httpd-2.2.25.tar.gz
tar zxvf httpd-2.2.25.tar.gz 
cd httpd-2.2.25</pre>
<p>We advise you to configure with the options below as this form is widely used:</p>
<pre class="brush: shell; gutter: true; first-line: 1">./configure \
        "--prefix=/etc/httpd" \
        "--exec-prefix=/etc/httpd" \
        "--bindir=/usr/bin" \
        "--sbindir=/usr/sbin" \
        "--sysconfdir=/etc/httpd/conf" \
        "--enable-so" \
        "--enable-dav" \
        "--enable-dav-fs" \
        "--enable-dav-lock" \
        "--enable-suexec" \
        "--enable-deflate" \
        "--enable-unique-id" \
        "--enable-mods-static=most" \
        "--enable-reqtimeout" \
        "--with-mpm=prefork" \
        "--with-suexec-caller=apache" \
        "--with-suexec-docroot=/" \
        "--with-suexec-gidmin=100" \
        "--with-suexec-logfile=/var/log/httpd/suexec_log" \
        "--with-suexec-uidmin=100" \
        "--with-suexec-userdir=public_html" \
        "--with-suexec-bin=/usr/sbin/suexec" \
        "--with-included-apr" \
        "--with-pcre=/usr" \
        "--includedir=/usr/include/apache" \
        "--libexecdir=/usr/lib/apache" \
        "--datadir=/var/www" \
        "--localstatedir=/var" \
        "--enable-logio" \
        "--enable-ssl" \
        "--enable-rewrite" \
        "--enable-proxy" \
        "--enable-expires" \
        "--with-ssl=/usr" \
        "--enable-headers"</pre>
<p>to build and install source distro, type:</p>
<pre class="brush: shell; gutter: true; first-line: 1">make
make install</pre>
<h2>Build &amp; Install MySQL</h2>
<p>Since we need headers and libraries of mysql for compiling PHP, we will first install MySQL server before PHP compilation.</p>
<pre class="brush: shell; gutter: true; first-line: 1">wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.14.tar.gz/from/http://cdn.mysql.com/
tar zxvf mysql-5.6.14.tar.gz 
cd mysql-5.6.14
groupadd mysql
useradd -g mysql mysql
cmake .  -DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock
make
make install</pre>
<p>If you encounter problems while running cmake, you have to delete <strong>CmakeCache.txt</strong> before re-compiling with cmake</p>
<pre class="brush: shell; gutter: true; first-line: 1">#log in to newly created mysql dir
cd /usr/local/mysql/
#change owner and group
chown -R mysql:mysql .
scripts/mysql_install_db --user=mysql --datadir=/var/lib/mysql
#add service command
cp support-files/mysql.server /etc/init.d/mysqld
chkconfig --add mysqld
chkconfig mysqld on
#start mysql server
service mysqld start</pre>
<p>change your mysql password by typing:</p>
<pre class="brush: shell; gutter: true; first-line: 1">./bin/mysqladmin -u root password 'new-password' 
./bin/mysqladmin -u root -h change.this.hostname password 'new-password'</pre>
<h2>Build libmcrypt from the source</h2>
<p>libmcypt repo is not included in the main yum repo, so better install it from the source:</p>
<pre class="brush: shell; gutter: true; first-line: 1">wget http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz/download?use_mirror=garr
tar zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
./configure
make
make install</pre>
<h2>Building PHP-5.5.5 from the source</h2>
<p>PHP configuration is also given with the mostly used modules &amp; functionality, download unpack &amp; configure as stated below:</p>
<pre class="brush: shell; gutter: true; first-line: 1">wget http://us2.php.net/get/php-5.5.5.tar.gz/from/this/mirror
tar zxvf php-5.5.5.tar.gz
cd php-5.5.5
./configure \
        --with-apxs2 \
        --with-curl=/usr \
        --with-gd \
        --with-gettext \
        --with-jpeg-dir=/usr \
        --with-freetype-dir=/usr \
        --with-kerberos \
        --with-openssl \
        --with-mcrypt=/usr/local/lib \
        --with-mhash \
        --with-mysql=mysqlnd \
        --with-mysqli=mysqlnd \
        --with-pcre-regex \
        --with-pear \
        --with-png-dir=/usr \
        --with-xsl \
        --with-zlib \
        --with-zlib-dir=/usr \
        --with-iconv \
        --enable-bcmath \
        --enable-calendar \
        --enable-exif \
        --enable-ftp \
        --enable-gd-native-ttf \
        --enable-soap \
        --enable-sockets \
        --enable-mbstring \
        --enable-zip \
        --enable-wddx
make
make install
libtool --finish /root/php-5.5.5/libs
cp php.ini-production /usr/local/lib/php.ini
sed -i 's/;date.timezone =.*/  date.timezone \= "Europe\/Istanbul"/' /usr/local/lib/php.ini</pre>
<h3>Download phpMyAdmin and install it to webroot:</h3>
<pre class="brush: shell; gutter: true; first-line: 1">wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.0.8/phpMyAdmin-4.0.8-all-languages.tar.gz
tar zxvf phpMyAdmin-4.0.8-all-languages.tar.gz 
mv phpMyAdmin-4.0.8-all-languages /var/www/
mv /var/www/phpMyAdmin-4.0.8-all-languages/ /var/www/phpMyAdmin</pre>
<p>create a test page to see if everything went well:</p>
<pre class="brush: shell; gutter: true; first-line: 1">echo "&lt;?PHP phpInfo();?&gt;" &gt; /var/www/index.php</pre>
<p>If you cannot see a PHP info page, you need to add httpd directives to your httpd.conf:</p>
<pre class="brush: shell; gutter: true; first-line: 1">echo "AddType application/x-httpd-php .php" &gt;&gt; /etc/httpd/conf/extra/httpd-php.conf
echo "AddType application/x-httpd-php-source .phps" &gt;&gt; /etc/httpd/conf/extra/httpd-php.conf

echo "Include conf/extra/httpd-php.conf" &gt;&gt; /etc/httpd/conf/httpd.conf</pre>
<p>restart apache by typing: <strong>apachectl restart</strong></p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/compiling-apache-mysql-php-source/">Compile and build Apache + MySQL + PHP from the source</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/compiling-apache-mysql-php-source/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">896</post-id>	</item>
		<item>
		<title>Add New Hosting to a System Installed With Plugged.sh</title>
		<link>https://www.veriteknik.net.tr/en/add-new-hosting-to-a-system-installed-with-plugged-sh/</link>
					<comments>https://www.veriteknik.net.tr/en/add-new-hosting-to-a-system-installed-with-plugged-sh/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Wed, 03 Jul 2013 11:45:30 +0000</pubDate>
				<category><![CDATA[Data Bases]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[mysql]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=779</guid>

					<description><![CDATA[<p>If you use our LAMP installer script and want to add a new domain afterwards, we&#8217;ve created a simple script to ease up the process. This script creates a new user, adds the domain settings for Apache, adds a new MySQL Database and user, restarts necessary services. Simply get our script from here or on [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/add-new-hosting-to-a-system-installed-with-plugged-sh/">Add New Hosting to a System Installed With Plugged.sh</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you use our <a title="Download Plugged.in LAMP installer for CentOS 6.x" href="https://github.com/VeriTeknik/plugged.sh">LAMP installer script</a> and want to add a new domain afterwards, we&#8217;ve created a simple script to ease up the process. This script creates a new user, adds the domain settings for Apache, adds a new MySQL Database and user, restarts necessary services.</p>
<p>Simply get our script from <a href="https://github.com/VeriTeknik/plugged.sh">here</a> or on your server via wget.</p>
<pre class="brush: bash; gutter: true; first-line: 1">git clone https://github.com/VeriTeknik/plugged.sh.git</pre>
<p>Run the script (as root) to learn about the usage.</p>
<pre class="brush: bash; gutter: true; first-line: 1">sh hostingadd.sh

Usage: hostingadd.sh -u username -p password -d domain -ip IP -dbu dbuser -dbn dbname -dbp dbpass

 -u username : Set the LOGIN name (FTP user)
 -p password : Set the Password
 -d domain : Set the Domain
 -ip ip : Set the IP address for the domain
 -dbu dbuser : Set the MySQL User
 -dbn dbname : Set the MySQL Database Name
 -dbp dbpass : Set the MySQL User Password</pre>
<p>The parameters are explained above. The script will try to create the MySQL databases as root, so it will need access to MySQL. In order to manage it, you&#8217;ll have to create a <strong>.my.cnf</strong> file under your <strong>/root</strong>  path. The <strong>/root/.my.cnf file</strong> should be like this :</p>
<pre class="brush: text; gutter: true; first-line: 1">[client]
user=root
pass=yourMySQLrootPassword</pre>
<p>Don&#8217;t worry about writing your password in clear text. This file is restricted by root access anyway, so if someone can read this file, your server is already compromised.</p>
<p>You can access via FTP by using the username and password provided while running the script. You can also check if the database is successfully added via phpmyadmin (which is installed by plugged.sh)</p>
<p>There isn&#8217;t an uninstall script yet, but I&#8217;ll write one asap.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/add-new-hosting-to-a-system-installed-with-plugged-sh/">Add New Hosting to a System Installed With Plugged.sh</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/add-new-hosting-to-a-system-installed-with-plugged-sh/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">779</post-id>	</item>
		<item>
		<title>Simple LDAP Class for PHP</title>
		<link>https://www.veriteknik.net.tr/en/simple-ldap-class-for-php/</link>
					<comments>https://www.veriteknik.net.tr/en/simple-ldap-class-for-php/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Sun, 25 Nov 2012 00:12:55 +0000</pubDate>
				<category><![CDATA[LDAP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Developer]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=652</guid>

					<description><![CDATA[<p>In this post, i&#8217;m gonna explain how to connect to a LDAP server via using PHP. First i wanna talk about some definitions; LDAP means Lightweight Directory Access Protocol. As you can understand from it&#8217;s name, it is a database which uses directory-tree based structure. It&#8217;s used by OpenLDAP, Sun Directory Server, Microsoft Active Directory [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/simple-ldap-class-for-php/">Simple LDAP Class for PHP</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this post, i&#8217;m gonna explain how to connect to a LDAP server via using PHP.</p>
<p>First i wanna talk about some definitions;</p>
<p><strong>LDAP</strong> means Lightweight Directory Access Protocol.</p>
<p>As you can understand from it&#8217;s name, it is a database which uses directory-tree based structure.</p>
<p>It&#8217;s used by OpenLDAP, Sun Directory Server, Microsoft Active Directory and such directory services.</p>
<p><strong>LDIF</strong> means LDAP Data Interchange Format.</p>
<p>You can easily execute LDAP queries using ldif files. For example;</p>
<pre class="brush: powershell; gutter: true; first-line: 1">dn: cn=John Doe,dc=example,dc=com
cn: John Doe
givenName: John
sn: Doe
telephoneNumber: +1 888 555 6789
telephoneNumber: +1 888 555 1232
mail: john@example.com
Manager: cn=Jane Doe,dc=example,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top</pre>
<p>You can see some other terms(actually attributes) in the LDAP query above. Such as dn: Distinguished Name, cn: Common Name, sn: Surname.</p>
<p>I&#8217;ll give more information about LDAP later in another post.</p>
<p><strong>PHP LDAP Functions</strong></p>
<p>PHP has it&#8217;s own LDAP functions by it&#8217;s own. But i&#8217;ve decided to write a class for easier access to these functions.</p>
<p>First, you have to include our class below.</p>
<pre class="brush: php; gutter: true; first-line: 1">&lt;?php 

class LDAP{

    public  $ldapserver = "99.245.56.89";
    public  $ldapport = "389";
    public  $basedn = "cn=admin,dc=web-sistem,dc=com";
    public  $basepass = "yourldap_password"; 

	function connect($server,$port){

		echo "Connecting to LDAP Server..."; 
		$connection = ldap_connect($server,$port);  // must be a valid LDAP server!	
		ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION, 3);

		// PHP Reference says there is no control of connection status in OpenLDAP 2.x.x
		// So we'll use binding function to check connection status.

		return $connection;

	}

	function bind($connection,$basedn,$basepass){

		echo "&lt;br&gt;&lt;br&gt;Binding...&lt;br&gt;";  
		$ldaprdn  = $basedn;    // ldap rdn or dn 
		$ldappass = $basepass;  // associated password
		$bind = ldap_bind($connection, $ldaprdn, $ldappass);

		if ($bind) { 
			echo "LDAP bind successful...";

		} else { 
			echo "LDAP bind failed..."; 
		}
	}

	function search($connection, $searchdn, $filter, $attributes = array()){

		$sr = ldap_search($connection, $searchdn, $filter, $attributes);

		if ($sr) {
			echo 'Search Succeeded. Getting Entries...&lt;br&gt;';

	        echo "Number of entires returned:  " . ldap_count_entries($connection, $sr) . "&lt;br /&gt;";

	        $info = ldap_get_entries($connection, $sr);

	        echo "Data for " . $info["count"] . " items returned:&lt;p&gt;\n";

			print_r($info);
			echo '&lt;hr&gt;&lt;br&gt;';

		} else {
			echo 'Search Failed.&lt;br&gt;';
		}
	}

	function addRecord($connection, $adddn, $record){

	    $addProcess = ldap_add($connection, $adddn, $record);

	    if($addProcess){
	        echo "Entry added&lt;br&gt;";
			echo '&lt;hr&gt;&lt;br&gt;';
	    } else {
	    	echo "Please check your data&lt;br&gt;";
			echo '&lt;hr&gt;&lt;br&gt;';
	    }
	}

	function modifyRecord($connection, $modifydn, $record){
		$modifyProcess = ldap_modify($connection, $modifydn, $record);
	    if($modifyProcess){
	        echo "Entry modified&lt;br&gt;";
			echo '&lt;hr&gt;&lt;br&gt;';
	    } else {
	    	echo "Please check your data&lt;br&gt;";
			echo '&lt;hr&gt;&lt;br&gt;';
	    }
	}

	function deleteRecord($connection, $dn, $recursive = false){
	    echo "Deleting Record...&lt;br&gt;";

	    if($recursive == false){
	    	echo 'Entry: ' . $dn . ' deleted.';
	        return(ldap_delete($connection, $dn));
	    } else {

	        // Search for child entries	        
	        $sr = ldap_list($connection, $dn, "ObjectClass=*", array(""));
	        $info = ldap_get_entries($connection, $sr);

	        for($i=0;$i&lt;$info['count'];$i++){
	            // Recursive delete child entries - using myldap_delete to recursive deletion
	            $result = myldap_delete($connection, $info[$i]['dn'], $recursive);
	            if(!$result){
	                // return status code if deletion fails.
	                return($result);
	            }
	        }
			// Delete top dn
			echo 'Entry: ' . $dn . ' deleted.';
	        return(ldap_delete($connection, $dn));
	    }
	}

	function close($connection){
		echo '&lt;hr&gt;&lt;br&gt;';
	    echo "Closing connection";
	    ldap_close($connection);
	}

}

?&gt;</pre>
<p>And then you may want to initialize and use our class. Usage is so simple.</p>
<pre class="brush: php; gutter: true; first-line: 1">&lt;?php

	require_once('class.ldap.php');

	$ldap = new LDAP();

	// Connect to LDAP Server  - connect(ldap_server, port)
	$connection = $ldap-&gt;connect($ldap-&gt;ldapserver,$ldap-&gt;ldapport);

	// Bind with LDAP instance
	$ldap-&gt;bind($connection,'cn=admin,dc=web-sistem,dc=com','yourldap_password');

	echo '&lt;hr&gt;&lt;br&gt;';

	// Search LDAP directory

	// Search with a wildcard
	$ldap-&gt;search($connection,'o=hosting,dc=web-sistem,dc=com','vd=*');

	// Search with no attributes specified	
	$ldap-&gt;search($connection,'o=hosting,dc=web-sistem,dc=com','vd=plugged.in');

	// Search with attributes (attributes must be an array)

	$ldap-&gt;search($connection,'o=hosting,dc=web-sistem,dc=com','vd=web-sistem.com', array('custID'));

	// Prepare data to insert

	// Please change the record entry as required by your company directory structure

	$insert_data['objectclass'][0] = "top";
	$insert_data['objectclass'][1] = "VirtualDomain";

	$insert_data["accountActive"] = "TRUE";
	$insert_data["delete"] = "FALSE";
	$insert_data["lastChange"] = "103";
	$insert_data["vd"] = "plugged.in";
	$insert_data["adminID"] = "3";
	$insert_data["custID"] = "2";
	$insert_data["editAV"] = "FALSE";
	$insert_data["maxAlias"] = "20";
	$insert_data["maxMail"] = "22";
	$insert_data["maxQuota"] = "300";
	$insert_data["postfixTransport"] = "maildrop:";

	// LDAP Insert DN		
	$addDN = "vd=plugged.in,o=hosting,dc=web-sistem,dc=com";
	$ldap-&gt;addRecord($connection,$addDN,$insert_data);

	// Prepare data to modify

	// Please change the record entry as required by your company directory structure

	$modify_data["adminID"] = "3213";
	$modify_data["custID"] = "2441";

	// LDAP Modify DN		
	$modifyDN = "vd=plugged.in,o=hosting,dc=web-sistem,dc=com";
	$ldap-&gt;modifyRecord($connection,$modifyDN,$modify_data);

	// Delete LDAP record	(third parameter is "Recursive")
	$deleteDN = "vd=plugged.in,o=hosting,dc=web-sistem,dc=com";
	$ldap-&gt;deleteRecord($connection,$deleteDN,true);

	//Close LDAP Connection
	$ldap-&gt;close($connection);
?&gt;</pre>
<p><strong>That&#8217;s all for now.</strong></p>
<p><strong>If you have questions or advices about this class please leave a message in comments section.</strong></p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/simple-ldap-class-for-php/">Simple LDAP Class for PHP</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/simple-ldap-class-for-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">652</post-id>	</item>
		<item>
		<title>Resetting MySQL Root Password on CentOS</title>
		<link>https://www.veriteknik.net.tr/en/resetting-mysql-root-password-on-centos/</link>
					<comments>https://www.veriteknik.net.tr/en/resetting-mysql-root-password-on-centos/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Sat, 17 Nov 2012 10:18:28 +0000</pubDate>
				<category><![CDATA[Data Bases]]></category>
		<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=645</guid>

					<description><![CDATA[<p>It is not uncommon for you to need the MySQL root password of a server, especially when you&#8217;re dealing with hundreds of different servers. Here&#8217;s the quickest way to reset it. (Don&#8217;t forget that you need to login to your server as root in order to achieve this) 1) Start MySQL in safe mode. 2) [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/resetting-mysql-root-password-on-centos/">Resetting MySQL Root Password on CentOS</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>It is not uncommon for you to need the MySQL root password of a server, especially when you&#8217;re dealing with hundreds of different servers. Here&#8217;s the quickest way to reset it. (Don&#8217;t forget that you need to login to your server as <strong>root</strong> in order to achieve this)</p>
<p>1) Start MySQL in safe mode.</p>
<p>2) Reset the root password.</p>
<p>3) Flush privileges.</p>
<p>4) Create a my.cnf file so that you can automatically log-in next time.</p>
<pre class="brush: text; gutter: true; first-line: 1"># service mysqld stop
# mysqld_safe --skip-grant-tables &amp;
# mysql -u root
&gt; update mysql.user set password=PASSWORD("newpass") where User='root';
&gt; flush privileges;
&gt; exit;
# { echo "[client]"; echo "user=root"; echo "password=newpass"; } &gt;&gt; /root/.my.conf
# service mysqld restart</pre>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/resetting-mysql-root-password-on-centos/">Resetting MySQL Root Password on CentOS</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/resetting-mysql-root-password-on-centos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">645</post-id>	</item>
		<item>
		<title>MySQL Server Won&#8217;t Start : PID File Errors</title>
		<link>https://www.veriteknik.net.tr/en/mysql-server-wont-start-pid-file-errors/</link>
					<comments>https://www.veriteknik.net.tr/en/mysql-server-wont-start-pid-file-errors/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Mon, 12 Nov 2012 09:34:23 +0000</pubDate>
				<category><![CDATA[Data Bases]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pid]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=643</guid>

					<description><![CDATA[<p>This is kind of a common problem and may have several reasons. Sometimes when we simply want to restart the MySQL Server, we can get such an error: ERROR! MySQL server PID file could not be found! First of all, always check if the /tmp partition is full. This can happen when MySQL can&#8217;t write [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/mysql-server-wont-start-pid-file-errors/">MySQL Server Won&#8217;t Start : PID File Errors</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This is kind of a common problem and may have several reasons. Sometimes when we simply want to restart the MySQL Server, we can get such an error:<br />
ERROR! MySQL server PID file could not be found!</p>
<p>First of all, always check if the /tmp partition is full. This can happen when MySQL can&#8217;t write to the <strong>/tmp</strong> partition to create a lock file.<br />
<strong>$ df -h</strong></p>
<p>Also, this may be because, somehow the <strong>/tmp</strong> partition has been cleared and the MySQL server is looking for the PID file there. So easy-peasy just create a new pid file and restart the server.<br />
<strong>$ touch /tmp/mysql.sock</strong><br />
<strong>$ service mysqld restart</strong></p>
<p>It can also help to check the status, sometimes it helps. For example sometimes you can get an error like this :<br />
<strong>$ service mysqld status</strong><br />
<strong>ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists</strong></p>
<p>Well, it&#8217;s kind of obvious, just remove the lock file and restart the server.</p>
<p><strong>$ rm /var/lock/subsys/mysql</strong><br />
<strong>$ service mysqld restart</strong></p>
<p>If none of these help, and you&#8217;re getting an error like this:<br />
<strong>$ service mysqld restart</strong><br />
<strong>ERROR! MySQL server PID file could not be found!</strong><br />
<strong>Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/mydomain.com.pid).</strong></p>
<p>Then there might be a more complicated problem. Check the log file at <strong>/var/lib/mysql/mydomain.com.err</strong><br />
<strong>$ tail /var/lib/mysql/mydomain.com.err</strong><br />
<strong>120602 16:54:09 mysqld_safe mysqld from pid file /var/lib/mysql/mydomain.com.pid ended</strong></p>
<p>This line tells us that we have a compatibility problem with some of our tables and mysql fails to start in safe mode.</p>
<p>Now let&#8217;s change the way mysql starts to work around this situtation.</p>
<p><strong>$ { echo &#8220;mysql_enable=\&#8221;YES\&#8221;&#8221;; echo &#8220;mysql_args=\&#8221;&#8211;skip-grant-tables &#8211;skip-networking\&#8221;&#8221;; } &gt;&gt; /etc/init/rc.conf</strong></p>
<p>Time to restart</p>
<p><strong>$ /etc/init.d/mysqld restart</strong></p>
<p>You should a get successfull restart. Now try and upgrade the server.<br />
<strong>$ mysql_upgrade</strong></p>
<p>If it says you have the latest version, still force it.<br />
<strong>$ mysql_upgrade &#8211;force</strong></p>
<p>It will check every database if it&#8217;s ok. After that, we can return things to normal, comment out the last line we&#8217;ve added to<strong> /etc/init/rc.conf</strong></p>
<p><strong>$ sed -i &#8216;/mysql_args/s/^/#/&#8217; /etc/init/rc.conf</strong><br />
<strong>$ service mysqld restart</strong></p>
<p>Hope this helps.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/mysql-server-wont-start-pid-file-errors/">MySQL Server Won&#8217;t Start : PID File Errors</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/mysql-server-wont-start-pid-file-errors/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">643</post-id>	</item>
		<item>
		<title>PhpMyAdmin : Cannot start session without errors</title>
		<link>https://www.veriteknik.net.tr/en/phpmyadmin-cannot-start-session-without-errors/</link>
					<comments>https://www.veriteknik.net.tr/en/phpmyadmin-cannot-start-session-without-errors/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Tue, 26 Jun 2012 10:36:15 +0000</pubDate>
				<category><![CDATA[Data Bases]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=585</guid>

					<description><![CDATA[<p>Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. If you&#8217;re getting this error when starting phpMyAdmin, there are a few possibilities of what the problem may be. For starters, be sure that it is a server side problem. If this only [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/phpmyadmin-cannot-start-session-without-errors/">PhpMyAdmin : Cannot start session without errors</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.</strong></p>
<p>If you&#8217;re getting this error when starting phpMyAdmin, there are a few possibilities of what the problem may be.</p>
<p>For starters, be sure that it is a server side problem. If this only happens to one computer, just clear the browser cache and you&#8217;re good to go.</p>
<p>If that doesn&#8217;t solve the problem, it&#8217;s on the server.</p>
<p>PhpMyAdmin uses session intensely, check that the sessions folder of php is properly set.</p>
<p>Go to <strong>php.ini</strong> and look for the value <strong>session.save_path </strong></p>
<p>If there is a value for it, look for the path, it should be in mode <strong>777</strong> and owner <strong>root:user</strong> (change <strong>user</strong> with your own of course)</p>
<p>Sometimes this alone won&#8217;t solve the problem, check for you <strong>/tmp</strong> folder, if it is not <strong>777</strong>, do it.</p>
<p>If this still does not solve the problem, clear the contents of the /tmp folder, some old session files stored in the /tmp folder do cause phpmyadmin to crash.</p>
<p>Since probably your <strong>/tmp</strong> folder is crowded, a simple <strong>rm -f /tmp/*</strong> might say <em>&#8220;argument list too long&#8221;</em>, in such case try this.</p>
<pre class="brush: bash; gutter: true; first-line: 1">find /tmp -name '*' -print0 | xargs -0 -n 10 rm</pre>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/phpmyadmin-cannot-start-session-without-errors/">PhpMyAdmin : Cannot start session without errors</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/phpmyadmin-cannot-start-session-without-errors/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">585</post-id>	</item>
		<item>
		<title>Download Plugged.in LAMP installer for CentOS 6.x</title>
		<link>https://www.veriteknik.net.tr/en/plugged-install-lamp-for-centosredhat-6-x-download/</link>
					<comments>https://www.veriteknik.net.tr/en/plugged-install-lamp-for-centosredhat-6-x-download/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Wed, 20 Jun 2012 22:15:06 +0000</pubDate>
				<category><![CDATA[Data Bases]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[LINUX Help]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[installer]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ntpdate]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rpmforge]]></category>
		<category><![CDATA[selinux]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=568</guid>

					<description><![CDATA[<p>Version Info: V0.2 21/06/2012 DO you ever wanted to set-up a testing server with &#8211; Apache virtual config, logs, paths setted, &#8211; MySQL server with password set, &#8211; FTP Server (Vsftpd), &#8211; PHP and PhpMyAdmin installed &#38; configured on your server or VPS in seconds? If you answer &#8220;yes&#8221; to the question, you are in [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/plugged-install-lamp-for-centosredhat-6-x-download/">Download Plugged.in LAMP installer for CentOS 6.x</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Version Info: V0.2 21/06/2012</p>
<p>DO you ever wanted to set-up a testing server with<br />
&#8211; Apache virtual config, logs, paths setted,<br />
&#8211; MySQL server with password set,<br />
&#8211; FTP Server (Vsftpd),<br />
&#8211; PHP and PhpMyAdmin installed &amp; configured on your server or VPS in seconds?</p>
<p>If you answer &#8220;yes&#8221; to the question, you are in the right place, what does this script do in basic:</p>
<p>&#8211; Installs http, PHP, MySQL, phpMyAdmin, rpmforge repo and other related packages<br />
&#8211; Sets apache configs, mod_deflate, virtual hosts, create user, cgi-bin directory<br />
&#8211; Sets time with ntpdate, disables iptables &amp; selinux, mysql password and<br />
&#8211; Updates the system</p>
<p>What is needed?<br />
&#8211; A clean minimal install of CentOS/Redhat 6.X</p>
<p>How can I download the script?</p>
<pre class="brush: bash; gutter: true; first-line: 1">wget http://www.plugged.in/downloads/plugged.sh</pre>
<p>or just download it.</p>
[wpdm_file id=1]
<p>How to use the script?</p>
<pre class="brush: bash; gutter: true; first-line: 1">chmod 755 plugged.sh
./plugged.sh -u username -p password -d domain.com</pre>
<p>You can reach phpMyAdmin by typing domain.com/phpMyAdmin/</p>
<p>If you have suggestions or requests please write down!</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/plugged-install-lamp-for-centosredhat-6-x-download/">Download Plugged.in LAMP installer for CentOS 6.x</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/plugged-install-lamp-for-centosredhat-6-x-download/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">568</post-id>	</item>
		<item>
		<title>Update MySQL user passwords from H-Sphere DataBase</title>
		<link>https://www.veriteknik.net.tr/en/update-mysql-user-passwords-in-h-sphere-database/</link>
					<comments>https://www.veriteknik.net.tr/en/update-mysql-user-passwords-in-h-sphere-database/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Thu, 14 Jun 2012 00:25:32 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=545</guid>

					<description><![CDATA[<p>This article is only applicable to H-Sphere control panel where old mysql passwords are stored as clear text. With the latest update, php 53 comes with mysqlnd module which doesn&#8217;t allow old_passwords to be used. In /etc/my.cnf comment old_passwords if any, Backup your MySQL database and restart mysql server and execute the following code: Create [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/update-mysql-user-passwords-in-h-sphere-database/">Update MySQL user passwords from H-Sphere DataBase</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This article is only applicable to H-Sphere control panel where old mysql passwords are stored as clear text.</p>
<p>With the latest update, php 53 comes with mysqlnd module which doesn&#8217;t allow old_passwords to be used.</p>
<p>In /etc/my.cnf comment old_passwords if any,</p>
<p>Backup your MySQL database and restart mysql server and execute the following code:</p>
<p>Create a php file and copy/paste below code:</p>
<pre class="brush: php; gutter: true; first-line: 1">&lt;?php

ini_set("display_errors",1);

//Postgres login on CP server
$dbuser = "wwwuser";
$dbpass = "dbpass";
$dbhost = "cp_pgsql_ip";
$dbname = "hsphere";

//MySQL login on MySQL server
$myroot = "root";
$mypass = "mysql_root_pass";
$myhost = "mysql_server_ip";
$mylid = 25;

$mycon = mysql_connect($myhost, $myroot, $mypass);
if (!$mycon) {
    die('Could not connect: ' . mysql_error());
}
mysql_select_db('mysql', $mycon);

	$dbconn = pg_connect("host=$dbhost dbname=$dbname user=$dbuser password=$dbpass")
    or die('Could not connect: ' . pg_last_error());

	$users = pg_query("select mu.login,mu.password from mysql_users as mu ,mysqlres as mr where mu.parent_id=mr.id and mr.mysql_host_id=$mylid order by mu.login asc; ;")
	or die('Query failed: ' . pg_last_error());
	while ($line = pg_fetch_array($users, null, PGSQL_ASSOC))
	{
			echo "Setting ".$line["login"].": ";
			$login = $line["login"];
			$pass = $line["password"];

			mysql_query("set password for '".$login."'@'localhost' = password('".$pass."');");
			mysql_query("set password for '".$login."'@'%' = password('".$pass."');");
			echo "&lt;br/&gt;";
	}

?&gt;</pre>
<p>Good luck!.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/update-mysql-user-passwords-in-h-sphere-database/">Update MySQL user passwords from H-Sphere DataBase</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/update-mysql-user-passwords-in-h-sphere-database/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">545</post-id>	</item>
		<item>
		<title>How to change storage engine to InnoDB in MySQL ?</title>
		<link>https://www.veriteknik.net.tr/en/how-to-change-storage-engine-to-innodb-in-mysql/</link>
					<comments>https://www.veriteknik.net.tr/en/how-to-change-storage-engine-to-innodb-in-mysql/#respond</comments>
		
		<dc:creator><![CDATA[Ahmet Polat]]></dc:creator>
		<pubDate>Wed, 25 Apr 2012 12:22:30 +0000</pubDate>
				<category><![CDATA[Data Bases]]></category>
		<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=345</guid>

					<description><![CDATA[<p>You&#8217;ve designed a database with MyISAM and suddenly realized that you need ACID (atomicity, consistency, isolation, durability) compliant features and transactions. Right, you should use InnoDB. But how to change storage engine for your previous tables ? As far as i know, changing the storage engine for tables is easy by alter command. But there&#8217;s one flaw. You should [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/how-to-change-storage-engine-to-innodb-in-mysql/">How to change storage engine to InnoDB in MySQL ?</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>You&#8217;ve designed a database with MyISAM and suddenly realized that you need ACID (<em>atomicity, consistency, isolation, durability</em>) compliant features and transactions.</p>
<p>Right, you should use <a title="wikipedia: InnoDB" href="http://en.wikipedia.org/wiki/InnoDB" target="_blank">InnoDB</a>. But how to change storage engine for your previous tables ?</p>
<p>As far as i know, changing the storage engine for tables is easy by alter command.</p>
<p>But there&#8217;s one flaw. You should do it one by one.</p>
<p>On the other hand, you could either write complex SQL queries, or you could write a php code for bulk changes.</p>
<p>Today i&#8217;m gonna show you how to change your storage engine with a tiny code.</p>
<p><span style="color: #e01e2a; font-size: small;">Please notice that if you decide to use my code it is your responsibility.</span></p>
<blockquote><p>$db = &#8216;your_database_name_here&#8217;;</p>
<p>$dsn = &#8220;mysql:host=localhost;dbname=$db&#8221;;</p>
<p>$username = &#8220;your_MySQL_username&#8221;;</p>
<p>$password = &#8220;your_password&#8221;;</p>
<p>$current = &#8216;MyISAM&#8217;; // Current storage engine</p>
<p>$target = &#8216;INNODB&#8217;; // Target storage engine</p>
<p>&nbsp;</p>
<p>try {</p>
<p style="padding-left: 30px;">$pdo = new PDO($dsn, $username, $password);</p>
<p>}</p>
<p>catch(PDOException $e) {</p>
<p style="padding-left: 30px;">die(&#8220;Could not connect to the database\n&#8221;);</p>
<p>}</p>
<p>$result = $pdo-&gt;query(&#8220;SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = &#8216;$db&#8217; AND ENGINE = &#8216;$current'&#8221;);</p>
<p>foreach($result as $row) {</p>
<p style="padding-left: 30px;">$success = $pdo-&gt;exec(&#8220;ALTER TABLE {$row[&#8216;TABLE_NAME&#8217;]} ENGINE = $target&#8221;);</p>
<p style="padding-left: 30px;">if($success) {</p>
<p style="padding-left: 60px;">echo &#8220;{$row[&#8216;TABLE_NAME&#8217;]} &#8211; success\n&#8221;;</p>
<p style="padding-left: 30px;">} else {</p>
<p style="padding-left: 60px;">$info = $pdo-&gt;errorInfo();</p>
<p style="padding-left: 60px;">echo &#8220;{$row[&#8216;TABLE_NAME&#8217;]} &#8211; failed: $info[2]\n&#8221;;</p>
<p style="padding-left: 30px;">}</p>
<p>}</p></blockquote>
<p>That&#8217;s all.</p>
<p><span style="color: #e01e2a;">If you see &#8220;failed&#8221; messages, there&#8217;s probably a permission issue with information_schema table.</span></p>
<p>In that case you should enter MySQL command line, and repeat the procedure there.</p>
<p>To list storage engines for tables, you should execute;</p>
<blockquote><p>SELECT TABLE_NAME, ENGINE FROM information_schema.TABLES WHERE TABLE_SCHEMA = &#8216;your_database_name&#8217;;</p></blockquote>
<p>This will show you which tables are using which storage engine.</p>
<p>After that you should execute;</p>
<blockquote><p>USE your_database_name;</p></blockquote>
<p>When you see &#8220;Database changed&#8221; message, you should execute;</p>
<blockquote><p>ALTER TABLE your_table_name ENGINE = INNODB;</p></blockquote>
<p>Have a nice life with your magnificent database storage engine InnoDB !</p>
<p>&nbsp;</p>
<p>Please check out other articles about InnoDB and Transactions.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/how-to-change-storage-engine-to-innodb-in-mysql/">How to change storage engine to InnoDB in MySQL ?</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/how-to-change-storage-engine-to-innodb-in-mysql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">345</post-id>	</item>
		<item>
		<title>MySQL root password recovery in DirectAdmin</title>
		<link>https://www.veriteknik.net.tr/en/mysql-root-password-recovery-in-directadmin/</link>
					<comments>https://www.veriteknik.net.tr/en/mysql-root-password-recovery-in-directadmin/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Sun, 15 Apr 2012 23:58:02 +0000</pubDate>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[recover]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[set]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=291</guid>

					<description><![CDATA[<p>Before changing MySQL root password you may try to recover default installation password. DirectAdmin MySQL root password is set within the installation process and written down to setup.txt. If you didn&#8217;t change this password you can find the default one in the setup.txt, use the command below to see the contents of /usr/local/directadmin/scripts/setup.txt: your password [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/mysql-root-password-recovery-in-directadmin/">MySQL root password recovery in DirectAdmin</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">Before changing MySQL root password you may try to recover default installation password. DirectAdmin MySQL root password is set within the installation process and written down to setup.txt.</p>
<p style="text-align: justify;">If you didn&#8217;t change this password you can find the default one in the setup.txt, use the command below to see the contents of /usr/local/directadmin/scripts/setup.txt:</p>
<p style="text-align: justify;">your password is stored in the line starting with &#8220;mysql=&#8221;</p>
<p style="text-align: justify;">To see the contents of this file from a terminal, type:</p>
<pre class="brush: shell; gutter: true; first-line: 1">less /usr/local/directadmin/scripts/setup.txt</pre>
<p><span style="text-align: justify;">If you want to access mysql from ssh or console directly without typing password, create a file in /root/ dir called .my.cnf:</span></p>
<pre class="brush: shell; gutter: true; first-line: 1">touch /root/.my.cnf</pre>
<p>and edit this file with the vi editor:</p>
<pre class="brush: bash; gutter: false; first-line: 1">vi /root/.my.cnf</pre>
<p>Add the lines below:</p>
<pre class="brush: bash; gutter: true; first-line: 1">[client]
 user=root
 password=XXXXXX</pre>
<p>Fill the password with the pass you got from setup.txt, save the file with SHIFT+ZZ or :wq and exit. After this step just write <strong>mysql </strong>to enter MySQL console directly without password.</p>
<pre class="brush: bash; gutter: false; first-line: 1">[root@test ~]# mysql
 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 169833
 Server version: 5.0.77-log MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql&gt;</pre>
<p>..</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/mysql-root-password-recovery-in-directadmin/">MySQL root password recovery in DirectAdmin</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/mysql-root-password-recovery-in-directadmin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">291</post-id>	</item>
	</channel>
</rss>
