{"id":435,"date":"2014-03-20T20:43:26","date_gmt":"2014-03-20T18:43:26","guid":{"rendered":"http:\/\/sahinsolmaz.com\/blog\/?p=435"},"modified":"2014-03-20T20:43:26","modified_gmt":"2014-03-20T18:43:26","slug":"ssh-ile-mysql-dosyasini-iceri-aktarmak-importing-mysql-databases-via-ssh","status":"publish","type":"post","link":"https:\/\/sahinsolmaz.com\/blog\/ssh-ile-mysql-dosyasini-iceri-aktarmak-importing-mysql-databases-via-ssh\/","title":{"rendered":"SSH ile MySQL Dosyas\u0131n\u0131 \u0130\u00e7eri Aktarmak-Importing MySQL Databases via SSH"},"content":{"rendered":"<p>Sunucunuzda y\u00f6netim paneli (cPanel, Plesk panel vb.) kullanm\u0131yor olabilirsiniz dolay\u0131s\u0131 ile <strong>phpMyAdmin<\/strong>\u00a0eri\u015fimiz de olmayacakt\u0131r\u00a0ya da y\u00fcklemek istedi\u011finiz <strong>.sql<\/strong>\u00a0<strong>veritaban\u0131\u00a0<\/strong>dosyan\u0131z\u0131n boyutu <strong>b\u00fcy\u00fck<\/strong> oldu\u011fu i\u00e7in time-out, bir tak\u0131m problemler ya\u015fayabilirsiniz bu ve benzeri durumlarda <strong>ssh<\/strong>\u00a0\u00fczerinden veritaban\u0131 dosyan\u0131z\u0131 kolayl\u0131kla import edebilirsiniz.<\/p>\n<p>Servers without a control panel (such as cPanel, Plesk, or Simple Control Panel) do not have phpMyAdmin installed. <!--more-->To manage databases without a control panel, you need to use the SSH command line to import .SQL backup files.<\/p>\n<ul>\n<li><strong>Root<\/strong> bilgilerimizle giri\u015f yap\u0131yoruz ve <strong>mysql<\/strong>\u00a0giri\u015fi i\u00e7in a\u015fa\u011f\u0131daki komutu \u00e7al\u0131\u015ft\u0131r\u0131yoruz ve \u015fifremizi giriyoruz<\/li>\n<li>\n<pre><span style=\"color: #0000ff;\"><strong>mysql -u\u00a0<em>username<\/em>\u00a0-p<\/strong><\/span> Enter password:\u00a0<em>password<\/em><\/pre>\n<\/li>\n<li><strong>use database<\/strong> komutu ile ilgili <strong>veritaban\u0131<\/strong>n\u0131 se\u00e7iyoruz\n<pre><strong><span style=\"color: #0000ff;\">use database_name<\/span><\/strong><\/pre>\n<\/li>\n<li>ve son olarak a\u015fa\u011f\u0131daki komut ile veritaban\u0131 dosyam\u0131z\u0131n yolunu belirterek import (i\u00e7e aktarma) i\u015flemini ba\u015flat\u0131yoruz.\n<pre><span style=\"color: #0000ff;\"><strong>SOURCE \/path\/to\/sql\/file.sql<\/strong><\/span><\/pre>\n<\/li>\n<li>\u0130ncelemek isterseniz a\u015fa\u011f\u0131daki komutlar\u0131 kullanabilirsiniz:\n<pre><strong><span style=\"color: #0000ff;\">show tables;<\/span><\/strong><\/pre>\n<pre><strong><span style=\"color: #0000ff;\">select * from\u00a0<em>table<\/em>;<\/span><\/strong><\/pre>\n<\/li>\n<\/ul>\n<p>Hepsi bu kadar!<br \/>\n&#8212;<\/p>\n<p><strong>SSH ile MySQL Dosyas\u0131 Nas\u0131l Y\u00fcklenir?<\/strong><br \/>\n<strong>How to do, Importing MySQL Databases via SSH?<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sunucunuzda y\u00f6netim paneli (cPanel, Plesk panel vb.) kullanm\u0131yor olabilirsiniz dolay\u0131s\u0131 ile phpMyAdmin\u00a0eri\u015fimiz de olmayacakt\u0131r\u00a0ya da y\u00fcklemek istedi\u011finiz .sql\u00a0veritaban\u0131\u00a0dosyan\u0131z\u0131n boyutu b\u00fcy\u00fck oldu\u011fu i\u00e7in time-out, bir tak\u0131m problemler ya\u015fayabilirsiniz bu ve benzeri durumlarda ssh\u00a0\u00fczerinden veritaban\u0131 dosyan\u0131z\u0131 kolayl\u0131kla import edebilirsiniz. Servers without a control panel (such as cPanel, Plesk, or Simple Control Panel) do not have phpMyAdmin installed.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[46,43,47],"tags":[141,145,142,143,556,144,140,138,12,551],"class_list":["post-435","post","type-post","status-publish","format-standard","hentry","category-ssh","category-sunucu","category-veritabanidatabase","tag-sql","tag-cozuldu","tag-iceri-aktarmak","tag-importing","tag-mysql","tag-mysql-databases","tag-mysql-import","tag-root","tag-solved","tag-ssh"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4sbm9-71","jetpack-related-posts":[{"id":381,"url":"https:\/\/sahinsolmaz.com\/blog\/change-mysql-resetupdate-password-root-ssh-kullanici-ve-sifre-islemleri\/","url_meta":{"origin":435,"position":0},"title":"Change MySQL Reset\/Update Password  &#8211; Root  SSH &#8211;  Kullan\u0131c\u0131 ve \u015eifre \u0130\u015flemleri","author":"SahinSOLMAZ","date":"25 May\u0131s 2014","format":false,"excerpt":"1. Change root password: su - root passwd 2. Mysql root password: --> ERROR 1045 (28000): Access denied for user 'root'@'localhost' service mysqld stop mysqld_safe --skip-grant-tables & mysql -u root mysql> mysql> use mysql; mysql> UPDATE user SET Password = PASSWORD ('yournewpassword') WHERE User='root'; mysql> FLUSH PRIVILEGES; mysql> quit; service\u2026","rel":"","context":"&quot;CentOS&quot; i\u00e7inde","block_context":{"text":"CentOS","link":"https:\/\/sahinsolmaz.com\/blog\/category\/sunucu\/centos\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":987,"url":"https:\/\/sahinsolmaz.com\/blog\/solved-error-1153-08s01-at-line-4147-got-a-packet-bigger-than-max_allowed_packet-bytes\/","url_meta":{"origin":435,"position":1},"title":"SOLVED &#8211; ERROR 1153 (08S01) at line 4147: Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes","author":"SahinSOLMAZ","date":"15 May\u0131s 2015","format":false,"excerpt":"Bir gece yaras\u0131 mysql veritaban\u0131n\u0131 import etmek istedi\u011finizde: ERROR 1153 (08S01) at line 4147: Got a packet bigger than 'max_allowed_packet' bytes hatas\u0131 ile kar\u015f\u0131la\u015f\u0131rsan\u0131z 1.se\u00e7enekteki d\u00f6rt ad\u0131m\u0131 uygulayarak bu s\u0131k\u0131nt\u0131dan kal\u0131c\u0131 olarak kurtulabilirsiniz veyahut 'max_allowed_packet' bytes hatas\u0131n\u0131 anl\u0131k olarak ge\u00e7mek isterseniz 2. se\u00e7enekteki ssh komutunu uygulayabilirsiniz. Ben MySQL dosyas\u0131n\u0131, SSH\u2026","rel":"","context":"&quot;MySQL&quot; i\u00e7inde","block_context":{"text":"MySQL","link":"https:\/\/sahinsolmaz.com\/blog\/category\/sunucu\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":860,"url":"https:\/\/sahinsolmaz.com\/blog\/mysql-tuning-veritabani-optimizasyonu-ile-sunucu-performansinizi-yukseltin\/","url_meta":{"origin":435,"position":2},"title":"MySQL Tuning Veritaban\u0131 Optimizasyonu ile Sunucu Performans\u0131n\u0131z\u0131 Y\u00fckseltin!","author":"SahinSOLMAZ","date":"17 Aral\u0131k 2014","format":false,"excerpt":"MySQL Tuning database\/veritaban\u0131 optimizasyonu ile sunucu performans\u0131n\u0131z\u0131 y\u00fckseltebilirsiniz. Bunun i\u00e7in yapman\u0131z gereken en pratik yol\u00a0Mysql Tuning yaz\u0131l\u0131m\u0131n\u0131n kurulumu ve \u00e7al\u0131\u015ft\u0131r\u0131lmas\u0131 neticesinde size belirtti\u011fi ayarlar\u0131 my.cnf\u00a0\u00fczerinden\u00a0g\u00fcncellemektir. MySQL Tuning Script'i ile\u00a0veritaban\u0131 performans\u0131n\u0131z\u0131 detayl\u0131 olarak inceleyebilir, rahatl\u0131kla sunucu performans\u0131n\u0131z\u0131 artt\u0131rabilirsiniz. Script Ad\u0131:\u00a0tuning-primer.sh Kaynak:\u00a0 http:\/\/day32.com\/MySQL\/ Direkt\u00a0link: http:\/\/day32.com\/MySQL\/tuning-primer.sh MySQL Tuning -\u00a0tuning-primer.sh\u00a0Nas\u0131l Kurulur? \/\/How to Install\u2026","rel":"","context":"&quot;CentOS&quot; i\u00e7inde","block_context":{"text":"CentOS","link":"https:\/\/sahinsolmaz.com\/blog\/category\/sunucu\/centos\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2014\/12\/MySQL-Tuning-Veritaban%C4%B1-Optimizasyonu-ile-Sunucu-Performans%C4%B1n%C4%B1z%C4%B1-Y%C3%BCkseltin-MySQL-Tuning-tuning-primer_MySQL-Tuning-tuning-primer.sh-Nas%C4%B1l-Kurulur_How-to-Install-MySQL-Tuning.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2014\/12\/MySQL-Tuning-Veritaban%C4%B1-Optimizasyonu-ile-Sunucu-Performans%C4%B1n%C4%B1z%C4%B1-Y%C3%BCkseltin-MySQL-Tuning-tuning-primer_MySQL-Tuning-tuning-primer.sh-Nas%C4%B1l-Kurulur_How-to-Install-MySQL-Tuning.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2014\/12\/MySQL-Tuning-Veritaban%C4%B1-Optimizasyonu-ile-Sunucu-Performans%C4%B1n%C4%B1z%C4%B1-Y%C3%BCkseltin-MySQL-Tuning-tuning-primer_MySQL-Tuning-tuning-primer.sh-Nas%C4%B1l-Kurulur_How-to-Install-MySQL-Tuning.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2014\/12\/MySQL-Tuning-Veritaban%C4%B1-Optimizasyonu-ile-Sunucu-Performans%C4%B1n%C4%B1z%C4%B1-Y%C3%BCkseltin-MySQL-Tuning-tuning-primer_MySQL-Tuning-tuning-primer.sh-Nas%C4%B1l-Kurulur_How-to-Install-MySQL-Tuning.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":432,"url":"https:\/\/sahinsolmaz.com\/blog\/change-mysql-root-password-mysql-root-sifresini-guncellemek\/","url_meta":{"origin":435,"position":3},"title":"Change MySQL Root Password &#8211; MySQL Root \u015eifresini G\u00fcncellemek","author":"SahinSOLMAZ","date":"20 Mart 2014","format":false,"excerpt":"Merhabalar, MySQL root \u015fifresini g\u00fcncellemeniz gerekirse, a\u015fa\u011f\u0131daki ssh\u00a0komutlar\u0131n\u0131 kullanman\u0131z yeterli olacakt\u0131r. Login ssh, type mysqladmin. A tip if you can not remember mysql password type \u00a0 mysql -uadmin -p`cat \/etc\/psa\/.psa.shadow` mysql> USE mysql; mysql> SELECT * FROM user; mysql> SET PASSWORD FOR 'username'@'hostname' = PASSWORD('password_here'); mysql> FLUSH PRIVILEGES; How to\u2026","rel":"","context":"&quot;SSH&quot; i\u00e7inde","block_context":{"text":"SSH","link":"https:\/\/sahinsolmaz.com\/blog\/category\/sunucu\/ssh\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":403,"url":"https:\/\/sahinsolmaz.com\/blog\/cozuldusolved-mysql-innodb-error-cannot-allocate-3154744384-bytes\/","url_meta":{"origin":435,"position":4},"title":"\u00c7\u00f6z\u00fcld\u00fc\/Solved -MySQL InnoDB: Error Cannot Allocate 3154744384 bytes","author":"SahinSOLMAZ","date":"31 Mart 2014","format":false,"excerpt":"InnoDB: Error: cannot allocate 3145744384 bytes of\u00a0InnoDB: memory with malloc! Total allocated memory \u00c7\u00d6Z\u00dcLD\u00dc \/ SOLVED innodb_buffer_pool_size=2G","rel":"","context":"&quot;Genel&quot; i\u00e7inde","block_context":{"text":"Genel","link":"https:\/\/sahinsolmaz.com\/blog\/category\/genel\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":401,"url":"https:\/\/sahinsolmaz.com\/blog\/mysql-stop-start-restart-unrecognized-service-error-solved\/","url_meta":{"origin":435,"position":5},"title":"MySQL &#8211; Stop, Start, ReStart Unrecognized Service Error Solved","author":"SahinSOLMAZ","date":"24 Mart 2014","format":false,"excerpt":"MySQL - Stop, Start, ReStart Unrecognized Service Error Solved mysql: unrecognized service [root@srv mysql]# service mysql stop mysql: unrecognized service [root@srv mysql]# service mysql restart mysql: unrecognized service [root@srv mysql]# service mysql restart mysql: unrecognized service \u00c7\u00d6Z\u00dcM \/ SOLVED: [root@srv mysql]# cd \/var\/lib\/mysql [root@srv mysql]# adduser mysql adduser: user mysql\u2026","rel":"","context":"&quot;Genel&quot; i\u00e7inde","block_context":{"text":"Genel","link":"https:\/\/sahinsolmaz.com\/blog\/category\/genel\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/posts\/435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/comments?post=435"}],"version-history":[{"count":0,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/posts\/435\/revisions"}],"wp:attachment":[{"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/media?parent=435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/categories?post=435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/tags?post=435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}