<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Onur Karaoz on Medium]]></title>
        <description><![CDATA[Stories by Onur Karaoz on Medium]]></description>
        <link>https://medium.com/@karaoz-onr?source=rss-2513b0cba0be------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*P_2kW1zy3CdWFV5tOLON8Q.png</url>
            <title>Stories by Onur Karaoz on Medium</title>
            <link>https://medium.com/@karaoz-onr?source=rss-2513b0cba0be------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 06:51:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@karaoz-onr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What Is Visual Studio Summary? Using C# XML Documentation]]></title>
            <link>https://karaoz-onr.medium.com/what-is-visual-studio-summary-using-c-xml-documentation-6a1b433e1525?source=rss-2513b0cba0be------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a1b433e1525</guid>
            <dc:creator><![CDATA[Onur Karaoz]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 18:05:54 GMT</pubDate>
            <atom:updated>2026-11-07T18:05:54.830Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*OemVBZAAcGIrJ2Pcg1lW5g.png" /></figure><p>SEO Description: What is Summary in Visual Studio? Learn how to use C# XML Documentation Comments to add &lt;summary&gt;, &lt;param&gt;, and &lt;returns&gt; descriptions to classes, methods, and properties.</p><p>When working on C# projects, it can sometimes be important to explain what your code does. As a project grows, understanding the purpose of a class or method can become more difficult.</p><p>Visual Studio provides the <strong>XML Documentation Comments</strong> feature for this purpose.</p><p>One of the most commonly used tags is:</p><p>&lt;summary&gt;</p><p>In this article, we will simply examine what Summary is in Visual Studio and how to create it.</p><h3>What Is Summary?</h3><p>&lt;summary&gt; is used to describe what a class, method, or property does.</p><p>For example, let’s say we have the following method:</p><pre>public User GetUser(int id)<br>{<br>    return _context.Users.Find(id);<br>}</pre><p>We can add a Summary comment to explain what this method does:</p><pre>/// &lt;summary&gt;<br>/// Retrieves a user based on their ID.<br>/// &lt;/summary&gt;<br>public User GetUser(int id)<br>{<br>    return _context.Users.Find(id);<br>}</pre><p>That’s it.</p><p>Thanks to Summary, someone using the code can more easily understand the purpose of the method.</p><h3>How to Create a Summary in Visual Studio</h3><p>Creating a Summary in Visual Studio is quite simple.</p><p>Go directly above the method or class you want to document.</p><p>Then type:</p><pre>///</pre><p>For example:</p><pre>///<br>public class UserService<br>{<br>}</pre><p>Visual Studio automatically creates the XML Documentation structure:</p><pre>/// &lt;summary&gt;<br>/// <br>/// &lt;/summary&gt;<br>public class UserService<br>{<br>}</pre><p>You can now write your description:</p><pre>/// &lt;summary&gt;<br>/// A service class that manages user operations.<br>/// &lt;/summary&gt;<br>public class UserService<br>{<br>}</pre><h3>Using Summary with Methods</h3><p>For example:</p><pre>public void AddUser(User user)<br>{<br>    _context.Users.Add(user);<br>    _context.SaveChanges();<br>}</pre><p>When we type /// above the method, Visual Studio creates the documentation structure.</p><pre>/// &lt;summary&gt;<br>/// Creates a new user record.<br>/// &lt;/summary&gt;<br>public void AddUser(User user)<br>{<br>    _context.Users.Add(user);<br>    _context.SaveChanges();<br>}</pre><h3>Parameter Description: param</h3><p>If our method has parameters, Visual Studio can also create the &lt;param&gt; tag.</p><p>For example:</p><pre>public User GetUser(int id)<br>{<br>    return _context.Users.Find(id);<br>}</pre><p>After adding documentation:</p><pre>/// &lt;summary&gt;<br>/// Retrieves a user based on their ID.<br>/// &lt;/summary&gt;<br>/// &lt;param name=&quot;id&quot;&gt;The ID of the user to retrieve.&lt;/param&gt;<br>/// &lt;returns&gt;Returns the user information.&lt;/returns&gt;<br>public User GetUser(int id)<br>{<br>    return _context.Users.Find(id);<br>}</pre><p>Here:</p><ul><li>&lt;summary&gt; → Explains what the method does.</li><li>&lt;param&gt; → Explains what the parameter represents.</li><li>&lt;returns&gt; → Explains the value returned by the method.</li></ul><h3>Using Summary with Properties</h3><p>Summary is not limited to methods.</p><p>You can also add descriptions to properties.</p><pre>public class User<br>{<br>    /// &lt;summary&gt;<br>    /// The unique ID of the user.<br>    /// &lt;/summary&gt;<br>    public int Id { get; set; }<br>    /// &lt;summary&gt;<br>    /// The user&#39;s first name.<br>    /// &lt;/summary&gt;<br>    public string FirstName { get; set; }<br>}</pre><h3>Visible in IntelliSense</h3><p>One of the main advantages of using Summary is that your descriptions can be displayed in <strong>Visual Studio IntelliSense</strong>.</p><p>For example:</p><pre>_userService.GetUser(1);</pre><p>When using this method, Visual Studio can display the description you wrote for it.</p><p>This is especially useful in:</p><ul><li>Large projects</li><li>Projects with multiple developers</li><li>Service and interface structures</li><li>Shared code and libraries</li></ul><h3>Most Common XML Documentation Tags</h3><p>TagDescription&lt;summary&gt;Explains what the code does&lt;param&gt;Describes a parameter&lt;returns&gt;Describes the return value&lt;remarks&gt;Adds additional information&lt;exception&gt;Describes a possible exception</p><p>Example:</p><pre>/// &lt;summary&gt;<br>/// Retrieves a user based on their ID.<br>/// &lt;/summary&gt;<br>/// &lt;param name=&quot;id&quot;&gt;The user&#39;s ID.&lt;/param&gt;<br>/// &lt;returns&gt;Returns the matching user record.&lt;/returns&gt;<br>public User GetUser(int id)<br>{<br>    return _context.Users.Find(id);<br>}</pre><h3>Is Using Summary Required?</h3><p>No.</p><p>You do not have to add a Summary comment to every method or property.</p><p>However, XML Documentation can be useful for important or complex code, as well as code that will be used by other developers.</p><p>The goal is not to fill every line with comments. The goal is to make the purpose of the code easier to understand.</p><h3>Conclusion</h3><p>Creating a Summary in Visual Studio is very simple.</p><p>All you need to do is type:</p><pre>///</pre><p>Visual Studio automatically creates the XML Documentation structure.</p><p>The most commonly used tags are:</p><pre>&lt;summary&gt;<br>&lt;param&gt;<br>&lt;returns&gt;</pre><p>When used correctly in Service, Controller, and Interface structures, especially in ASP.NET Core projects, XML Documentation can help make your code more readable and easier to understand.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a1b433e1525" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visual Studio Summary Nedir? C# XML Documentation Kullanımı]]></title>
            <link>https://karaoz-onr.medium.com/visual-studio-summary-nedir-c-xml-documentation-kullan%C4%B1m%C4%B1-05a8291b4002?source=rss-2513b0cba0be------2</link>
            <guid isPermaLink="false">https://medium.com/p/05a8291b4002</guid>
            <dc:creator><![CDATA[Onur Karaoz]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 18:04:04 GMT</pubDate>
            <atom:updated>2026-11-07T18:04:04.785Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*OemVBZAAcGIrJ2Pcg1lW5g.png" /></figure><p>SEO Açıklaması: Visual Studio’da Summary nedir? C# XML Documentation Comments kullanarak sınıf, metot ve property’lere &lt;summary&gt;, &lt;param&gt; ve &lt;returns&gt; açıklamaları nasıl eklenir?</p><p>C# projelerinde yazdığımız kodların ne yaptığını açıklamak bazen önemlidir. Özellikle proje büyüdükçe bir sınıfın veya metodun amacını anlamak zorlaşabilir.</p><p>Visual Studio’da bunun için <strong>XML Documentation Comments</strong> özelliği bulunur.</p><p>En çok kullanılan etiketlerden biri ise:</p><pre>&lt;summary&gt;</pre><p>etiketidir.</p><p>Bu yazıda Visual Studio’da Summary’nin ne olduğunu ve nasıl oluşturulduğunu basit şekilde inceleyeceğiz.</p><h3>Summary Nedir?</h3><p>&lt;summary&gt;, bir sınıfın, metodun veya property’nin ne işe yaradığını açıklamak için kullanılır.</p><p>Örneğin elimizde şöyle bir metot olsun:</p><pre>public User GetUser(int id)<br>{<br>    return _context.Users.Find(id);<br>}</pre><p>Bu metodun ne yaptığını açıklamak için üzerine Summary ekleyebiliriz:</p><pre>/// &lt;summary&gt;<br>/// ID bilgisine göre kullanıcıyı getirir.<br>/// &lt;/summary&gt;<br>public User GetUser(int id)<br>{<br>    return _context.Users.Find(id);<br>}</pre><p>Bu kadar.</p><p>Summary sayesinde kodu kullanan kişi metodun amacını daha kolay anlayabilir.</p><h3>Visual Studio’da Summary Nasıl Oluşturulur?</h3><p>Visual Studio’da Summary oluşturmak oldukça basittir.</p><p>Açıklama eklemek istediğiniz metodun veya sınıfın hemen üstüne gelin.</p><p>Ardından:</p><pre>///</pre><p>yazın.</p><p>Örneğin:</p><pre>///<br>public class UserService<br>{<br>}</pre><p>Visual Studio otomatik olarak XML Documentation yapısını oluşturur:</p><pre>/// &lt;summary&gt;<br>/// <br>/// &lt;/summary&gt;<br>public class UserService<br>{<br>}</pre><p>Artık açıklamanızı yazabilirsiniz:</p><pre>/// &lt;summary&gt;<br>/// Kullanıcı işlemlerini yöneten servis sınıfıdır.<br>/// &lt;/summary&gt;<br>public class UserService<br>{<br>}</pre><h3>Metotlarda Summary Kullanımı</h3><p>Örneğin:</p><pre>public void AddUser(User user)<br>{<br>    _context.Users.Add(user);<br>    _context.SaveChanges();<br>}</pre><p>Metodun üstüne /// yazdığımızda Visual Studio açıklama yapısını oluşturur.</p><pre>/// &lt;summary&gt;<br>/// Yeni bir kullanıcı kaydı oluşturur.<br>/// &lt;/summary&gt;<br>public void AddUser(User user)<br>{<br>    _context.Users.Add(user);<br>    _context.SaveChanges();<br>}</pre><h3>Parametre Açıklaması: param</h3><p>Metodumuzda parametre varsa Visual Studio &lt;param&gt; etiketi de oluşturabilir.</p><p>Örneğin:</p><pre>public User GetUser(int id)<br>{<br>    return _context.Users.Find(id);<br>}</pre><p>Dokümantasyon eklediğimizde:</p><pre>/// &lt;summary&gt;<br>/// ID bilgisine göre kullanıcıyı getirir.<br>/// &lt;/summary&gt;<br>/// &lt;param name=&quot;id&quot;&gt;Getirilecek kullanıcının ID bilgisi.&lt;/param&gt;<br>/// &lt;returns&gt;Kullanıcı bilgilerini döndürür.&lt;/returns&gt;<br>public User GetUser(int id)<br>{<br>    return _context.Users.Find(id);<br>}</pre><p>Burada:</p><ul><li>&lt;summary&gt; → Metodun ne yaptığını açıklar.</li><li>&lt;param&gt; → Parametrenin ne olduğunu açıklar.</li><li>&lt;returns&gt; → Metodun döndürdüğü değeri açıklar.</li></ul><h3>Property’lerde Summary Kullanımı</h3><p>Summary sadece metotlarda kullanılmaz.</p><p>Property’lere de açıklama ekleyebiliriz.</p><pre>public class User<br>{<br>    /// &lt;summary&gt;<br>    /// Kullanıcının benzersiz ID bilgisidir.<br>    /// &lt;/summary&gt;<br>    public int Id { get; set; }<br>    /// &lt;summary&gt;<br>    /// Kullanıcının adıdır.<br>    /// &lt;/summary&gt;<br>    public string FirstName { get; set; }<br>}</pre><h3>IntelliSense İçerisinde Görünür</h3><p>Summary kullanmanın önemli avantajlarından biri, yazdığınız açıklamaların <strong>Visual Studio IntelliSense içerisinde görüntülenmesidir</strong>.</p><p>Örneğin:</p><pre>_userService.GetUser(1);</pre><p>metodunu kullanırken Visual Studio, metodun üzerine yazdığınız açıklamayı gösterebilir.</p><p>Bu özellikle:</p><ul><li>Büyük projelerde</li><li>Birden fazla geliştiricinin çalıştığı projelerde</li><li>Service ve interface yapılarında</li><li>Ortak kullanılan kodlarda</li></ul><p>oldukça faydalıdır.</p><h3>En Çok Kullanılan XML Documentation Etiketleri</h3><p>EtiketAçıklama&lt;summary&gt;Kodun ne yaptığını açıklar&lt;param&gt;Parametreyi açıklar&lt;returns&gt;Dönüş değerini açıklar&lt;remarks&gt;Ek açıklama ekler&lt;exception&gt;Oluşabilecek hatayı açıklar</p><p>Örnek:</p><pre>/// &lt;summary&gt;<br>/// ID bilgisine göre kullanıcıyı getirir.<br>/// &lt;/summary&gt;<br>/// &lt;param name=&quot;id&quot;&gt;Kullanıcı ID bilgisi.&lt;/param&gt;<br>/// &lt;returns&gt;Bulunan kullanıcı kaydını döndürür.&lt;/returns&gt;<br>public User GetUser(int id)<br>{<br>    return _context.Users.Find(id);<br>}</pre><h3>Summary Kullanmak Zorunlu mu?</h3><p>Hayır.</p><p>Her metoda veya her property’ye Summary eklemek zorunda değilsiniz.</p><p>Ancak özellikle önemli, karmaşık veya başka geliştiriciler tarafından kullanılacak kodlarda XML Documentation kullanmak faydalıdır.</p><p>Amaç her satıra açıklama yazmak değil, kodun amacını daha kolay anlaşılır hale getirmektir.</p><h3>Sonuç</h3><p>Visual Studio’da Summary oluşturmak oldukça basittir.</p><p>Yapmanız gereken:</p><pre>///</pre><p>yazmaktır.</p><p>Visual Studio otomatik olarak XML Documentation yapısını oluşturur.</p><p>En çok kullanılan etiketler ise:</p><pre>&lt;summary&gt;<br>&lt;param&gt;<br>&lt;returns&gt;</pre><p>şeklindedir.</p><p>Özellikle ASP.NET Core projelerinde Service, Controller ve Interface yapılarında doğru şekilde kullanıldığında, kodun daha okunabilir ve anlaşılır olmasına yardımcı olur.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05a8291b4002" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MariaDB Client Commands and Usage]]></title>
            <link>https://karaoz-onr.medium.com/mariadb-client-commands-and-usage-a4c21f539d04?source=rss-2513b0cba0be------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4c21f539d04</guid>
            <dc:creator><![CDATA[Onur Karaoz]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 17:57:41 GMT</pubDate>
            <atom:updated>2026-11-07T17:57:41.686Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*hkzUimJDQW4k-KfJDEhYhA.png" /></figure><p>MariaDB Client is a command-line tool that allows you to connect to a MariaDB database server and manage database operations through the terminal. It can be used through Windows CMD, PowerShell, or the Linux terminal.</p><h3>1. Connecting to MariaDB</h3><p>You can use the following command to connect to a MariaDB server:</p><pre>mariadb -u root -p</pre><ul><li>-u: Specifies the username.</li><li>-p: Prompts for the user’s password.</li></ul><p>To connect to a specific server and port:</p><pre>mariadb -h localhost -P 3306 -u root -p</pre><h3>2. Connection and System Information</h3><p>You can use the following commands to view connection status and server information.</p><p>To view the connection status:</p><pre>status;</pre><p>To check the MariaDB version:</p><pre>SELECT VERSION();</pre><p>To view the currently connected user:</p><pre>SELECT USER();</pre><p>To check the currently selected database:</p><pre>SELECT DATABASE();</pre><p>To view active connections:</p><pre>SHOW PROCESSLIST;</pre><h3>3. Database Management</h3><p>To list available databases:</p><pre>SHOW DATABASES;</pre><p>To create a new database:</p><pre>CREATE DATABASE test_db;</pre><p>To start using a database:</p><pre>USE test_db;</pre><p>To delete a database:</p><pre>DROP DATABASE test_db;</pre><h3>4. User and Permission Management</h3><p>To create a new user:</p><pre>CREATE USER &#39;appuser&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;GucluSifre123!&#39;;</pre><p>To grant a user all privileges on a specific database:</p><pre>GRANT ALL PRIVILEGES ON test_db.* TO &#39;appuser&#39;@&#39;localhost&#39;;</pre><p>To list users:</p><pre>SELECT User, Host FROM mysql.user;</pre><p>To delete a user:</p><pre>DROP USER &#39;appuser&#39;@&#39;localhost&#39;;</pre><p>To apply permission changes:</p><pre>FLUSH PRIVILEGES;</pre><h3>5. Table Management</h3><p>To list tables in the currently selected database:</p><pre>SHOW TABLES;</pre><p>To view a table’s columns and data types:</p><pre>DESCRIBE users;</pre><p>To view the SQL statement used to create a table:</p><pre>SHOW CREATE TABLE users;</pre><p>To check the number of records in a table:</p><pre>SELECT COUNT(*) FROM users;</pre><h3>6. MariaDB Client Special Commands</h3><p>MariaDB Client also includes several special commands that can be used independently of SQL queries.</p><p>Command</p><p>\h or \? Opens the help menu.</p><p>\c Cancels the current query.</p><p>\q Exits the client.</p><p>\s Displays connection status.</p><p>\G Displays query results in vertical format.</p><p>\g Executes the current query.</p><p>source file.sql Executes an SQL file.</p><p>\r Reconnects to the server.</p><p>For example, to display query results in a vertical format:</p><pre>SELECT * FROM users\G</pre><h3>7. Running an SQL File</h3><p>You can run previously prepared SQL files using MariaDB.</p><p>From the terminal:</p><pre>mariadb -u root -p test_db &lt; backup.sql</pre><p>After connecting to MariaDB Client:</p><pre>SOURCE C:/backup/database.sql;</pre><p>This command executes the SQL queries contained in the specified file.</p><h3>8. Database Backup and Restore</h3><p>MariaDB uses the mariadb-dump command for database backup operations.</p><p>To back up a database:</p><pre>mariadb-dump -u root -p test_db &gt; backup.sql</pre><p>To restore a backup file:</p><pre>mariadb -u root -p test_db &lt; backup.sql</pre><p>To back up all databases:</p><pre>mariadb-dump -u root -p --all-databases &gt; full_backup.sql</pre><h3>9. Common Connection Commands</h3><p>Command</p><p>mariadb -u root -p</p><p>Connects to the local server.</p><p>mariadb -h 192.168.1.100 -u root -p</p><p>Connects to a remote server.</p><p>mariadb -h localhost -P 3307 -u root -p</p><p>Connects through the specified port.</p><p>mariadb -u root -p test_db</p><p>Connects directly to the specified database.</p><p>mariadb -u root -p — default-character-set=utf8mb4</p><p>Connects using the UTF-8 character set.</p><p>Note: If the mariadb command is not recognized on Windows, you may need to add MariaDB’s bin directory to the Windows PATH environment variable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4c21f539d04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MariaDB Client Komutları ve Kullanımı]]></title>
            <link>https://karaoz-onr.medium.com/mariadb-client-komutlar%C4%B1-ve-kullan%C4%B1m%C4%B1-d25b061a1012?source=rss-2513b0cba0be------2</link>
            <guid isPermaLink="false">https://medium.com/p/d25b061a1012</guid>
            <dc:creator><![CDATA[Onur Karaoz]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 17:52:38 GMT</pubDate>
            <atom:updated>2026-11-07T17:52:38.462Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*hkzUimJDQW4k-KfJDEhYhA.png" /></figure><p>MariaDB Client, MariaDB veritabanı sunucusuna terminal üzerinden bağlanmayı ve veritabanı işlemlerini komut satırından yönetmeyi sağlayan bir istemcidir. Windows CMD, PowerShell veya Linux terminali üzerinden kullanılabilir.</p><h3>1. MariaDB’ye Bağlanma</h3><p>MariaDB sunucusuna bağlanmak için aşağıdaki komut kullanılır:</p><pre>mariadb -u root -p</pre><ul><li>-u: Kullanıcı adını belirtir.</li><li>-p: Kullanıcı şifresini ister.</li></ul><p>Belirli bir sunucuya ve porta bağlanmak için:</p><pre>mariadb -h localhost -P 3306 -u root -</pre><h3>2. Bağlantı ve Sistem Bilgileri</h3><p>Bağlantı durumunu ve sunucu bilgilerini görüntülemek için kullanılır.</p><pre>status;</pre><p>MariaDB sürümünü öğrenmek için:</p><pre>SELECT VERSION();</pre><p>Aktif kullanıcıyı görüntülemek için:</p><pre>SELECT USER();</pre><p>Bağlı olunan veritabanını öğrenmek için:</p><pre>SELECT DATABASE();</pre><p>Aktif bağlantıları görüntülemek için:</p><pre>SHOW PROCESSLIST;</pre><h3>3. Veritabanı Yönetimi</h3><p>Mevcut veritabanlarını listelemek için:</p><pre>SHOW DATABASES</pre><p>Yeni veritabanı oluşturmak için:</p><pre>CREATE DATABASE test_db;</pre><p>Bir veritabanını kullanmaya başlamak için:</p><pre>USE test_db;</pre><p>Veritabanını silmek için:</p><pre>DROP DATABASE test_db;</pre><h3>4. Kullanıcı ve Yetkilendirme İşlemleri</h3><p>Yeni kullanıcı oluşturmak için:</p><pre>CREATE USER &#39;appuser&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;GucluSifre123!&#39;;</pre><p>Kullanıcıya belirli bir veritabanı üzerinde tüm yetkileri vermek için:</p><pre>GRANT ALL PRIVILEGES ON test_db.* TO &#39;appuser&#39;@&#39;localhost&#39;;</pre><p>Kullanıcıları listelemek için:</p><pre>SELECT User, Host FROM mysql.user;</pre><p>Kullanıcıyı silmek için:</p><pre>DROP USER &#39;appuser&#39;@&#39;localhost&#39;;</pre><p>Yetki değişikliklerini uygulamak için:</p><pre>FLUSH PRIVILEGES;</pre><h3>5. Tablo Yönetimi</h3><p>Seçili veritabanındaki tabloları listelemek için:</p><pre>SHOW TABLES;</pre><p>Bir tablonun sütunlarını ve veri tiplerini görüntülemek için:</p><pre>DESCRIBE users;</pre><p>Tablonun oluşturulma SQL kodunu görüntülemek için:</p><pre>SHOW CREATE TABLE users;</pre><p>Tablodaki kayıt sayısını öğrenmek için:</p><pre>SELECT COUNT(*) FROM users;</pre><h3>6. MariaDB Client Özel Komutları</h3><p>MariaDB Client içerisinde SQL sorgularından bağımsız olarak kullanılabilen bazı özel komutlar bulunur.</p><p>Komut</p><p>\h veya \?</p><p>Yardım menüsünü açar.</p><p>\c</p><p>Yazılan sorguyu iptal eder.</p><p>\q</p><p>İstemciden çıkar. \s</p><p>Bağlantı durumunu gösterir. \G</p><p>Sorgu sonucunu dikey formatta gösterir.</p><p>\g</p><p>Mevcut sorguyu çalıştırır.</p><p>source dosya.sql</p><p>SQL dosyasını çalıştırır.</p><p>\r</p><p>Bağlantıyı yeniden başlatır.</p><p>Örneğin, sorgu sonuçlarını dikey formatta görüntülemek için:</p><pre>SELECT * FROM users\G</pre><h3>7. SQL Dosyası Çalıştırma</h3><p>Önceden hazırlanmış SQL dosyalarını MariaDB üzerinden çalıştırabilirsin.</p><p>Terminal üzerinden:</p><pre>mariadb -u root -p test_db &lt; backup.sql</pre><p>MariaDB Client içerisine bağlandıktan sonra:</p><pre>SOURCE C:/backup/database.sql;</pre><p>Bu komut, belirtilen SQL dosyasındaki sorguları çalıştırır.</p><h3>8. Veritabanı Yedekleme ve Geri Yükleme</h3><p>MariaDB’de yedekleme işlemi için mariadb-dump komutu kullanılır.</p><p>Bir veritabanını yedeklemek için:</p><pre>mariadb-dump -u root -p test_db &gt; backup.sql</pre><p>Yedek dosyasını geri yüklemek için:</p><pre>mariadb -u root -p test_db &lt; backup.sql</pre><p>Tüm veritabanlarını yedeklemek için:</p><pre>mariadb-dump -u root -p --all-databases &gt; full_backup.sql</pre><h3>9. Sık Kullanılan Bağlantı Komutları</h3><p>Komut</p><p>Açıklama</p><p>mariadb -u root -p</p><p>Yerel sunucuya bağlanır.</p><p>mariadb -h 192.168.1.100 -u root -p</p><p>Uzak sunucuya bağlanır.</p><p>mariadb -h localhost -P 3307 -u root -p</p><p>Belirtilen port üzerinden bağlanır.</p><p>mariadb -u root -p test_db</p><p>Belirtilen veritabanına bağlanır.</p><p>mariadb -u root -p — default-character-set=utf8mb4</p><p>UTF-8 karakter setiyle bağlantı kurar.</p><p>Not: Windows üzerinde mariadb komutu tanınmıyorsa MariaDB kurulum klasöründeki bin dizinini Windows PATH ortam değişkenine ekleyebilirsin.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d25b061a1012" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ASP.NET Core ve MariaDB: Access Denied ve Tablo Bulunamadı Hatalarını Çözmek]]></title>
            <link>https://karaoz-onr.medium.com/asp-net-core-ve-mariadb-access-denied-ve-tablo-bulunamad%C4%B1-hatalar%C4%B1n%C4%B1-%C3%A7%C3%B6zmek-ac811b229a8c?source=rss-2513b0cba0be------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac811b229a8c</guid>
            <dc:creator><![CDATA[Onur Karaoz]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 14:08:00 GMT</pubDate>
            <atom:updated>2026-10-29T14:08:00.087Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*OfgHgG_pfaXRu4_swNXaNg.jpeg" /></figure><p>MariaDB kullanıyorsunuz. Uygulamayı çalıştırdığınızda aşağıdaki hatalarla karşılaşıyorsunuz:</p><pre>MySqlConnector.MySqlException:<br>Access denied for user &#39;root&#39;@&#39;localhost&#39;</pre><p>Bağlantı sorununu çözdükten sonra bu kez başka bir hata ortaya çıkıyor:</p><pre>MySqlConnector.MySqlException:<br>Table &#39;adminusers&#39; doesn&#39;t exist</pre><p>İlk bakışta bu iki hata birbiriyle ilişkili görünmeyebilir. Ancak veritabanı bağlantısı, kullanıcı yetkileri ve tablo oluşturma süreçleri birbirini doğrudan etkiler.</p><p>Bu yazıda MariaDB üzerinde uygulamaya özel bir kullanıcı oluşturmayı, veritabanı yetkilerini ayarlamayı ve bağlantısını yapılandırmayı adım adım inceleyeceğiz.</p><h3>1. Hata mesajlarını anlamak</h3><p>Öncelikle karşılaştığımız hataları doğru yorumlayalım.</p><h3>Access denied for user</h3><pre>Access denied for user &#39;root&#39;@&#39;localhost&#39;<br>(using password: YES)</pre><p>Bu hata, MariaDB’nin bağlantı isteğini kabul etmediğini gösterir. Yanlış parola, kullanıcı yetkileri veya kimlik doğrulama yapılandırması bu duruma neden olabilir.</p><p>Burada önemli bir ayrıntı var: <strong>using password: YES </strong>ifadesi, parolanın doğru olduğunu değil, bağlantı isteğinde parola kullanıldığını belirtir.</p><h3>Table doesn’t exist</h3><pre>Table &#39;adminusers&#39; doesn&#39;t exist</pre><p>Bu hata, uygulamanın <strong>veritabaniadi </strong>veritabanındaki <strong>adminusers </strong>tablosuna erişmeye çalıştığını ancak tabloyu bulamadığını gösterir.</p><p>Olası nedenler şunlardır:</p><ul><li>Tablo henüz oluşturulmamıştır.</li><li>Uygulama yanlış veritabanına bağlanıyordur.</li><li>Entity ile veritabanındaki tablo adı eşleşmiyordur.</li><li>Migration işlemleri uygulanmamıştır.</li></ul><p>Bu nedenle yalnızca tabloyu oluşturmaya odaklanmak yerine bağlantı yapılandırmasını da kontrol etmeliyiz.</p><h3>2. MariaDB’ye yönetici olarak bağlanmak</h3><p>Öncelikle MariaDB’nin kurulu olduğu dizini belirleyelim.</p><p>Bu örnekte MariaDB 10.11, Windows üzerinde aşağıdaki dizine kurulmuştur:</p><pre>C:\Program Files\MariaDB 10.11\bin\mysql.exe</pre><p>Windows<strong> CMD </strong>üzerinden şu komutla bağlanabiliriz:</p><pre>&quot;C:\Program Files\MariaDB 10.11\bin\mysql.exe&quot; -u root -p</pre><p>MariaDB farklı bir dizine kurulmuşsa komuttaki yolu güncellemeliyiz.</p><p>-u root kullanıcı adını, -p ise parolanın etkileşimli olarak sorulmasını sağlar.</p><p>Başarılı bağlantı sonrasında aşağıdakine benzer bir ekran görürüz:</p><pre>Welcome to the MariaDB monitor.<br>Server version: 10.11.8-MariaDB<br>MariaDB [(none)]&gt;</pre><p>Artık SQL komutlarını çalıştırabiliriz.</p><h3>3. Uygulamaya özel veritabanı oluşturmak</h3><p>Uygulamaların veritabanına doğrudan yönetici hesabıyla bağlanması yerine ayrı bir kullanıcı kullanmak daha doğru bir yaklaşımdır.</p><p>Önce veritabanımızı oluşturalım:</p><pre>CREATE DATABASE IF NOT EXISTS edirnehafriyat<br>CHARACTER SET utf8mb4<br>COLLATE utf8mb4_unicode_ci;</pre><p>Burada:</p><ul><li>IF NOT EXISTS, veritabanı zaten varsa yeniden oluşturma hatasını önler.</li><li>utf8mb4, Unicode karakterlerin saklanmasını sağlar.</li><li>utf8mb4_unicode_ci, metin karşılaştırmalarında Unicode tabanlı bir sıralama kullanır.</li></ul><p>Bu işlem yalnızca veritabanını oluşturur. Tabloları otomatik olarak oluşturmaz.</p><h3>4. MariaDB’de uygulama kullanıcısı oluşturmak</h3><p>Şimdi veritabanı için ayrı bir kullanıcı oluşturalım:</p><pre>CREATE USER &#39;onur&#39;@&#39;localhost&#39;<br>IDENTIFIED BY &#39;GucluBirSifre123!&#39;;</pre><p>Buradaki kullanıcı adı <strong>onurapp</strong>, bağlantı adresi ise <strong>localhost </strong>olarak tanımlanmıştır.</p><p>Örnekteki parolayı gerçek projede kullanmayın. Kendinize özgü, güçlü bir parola belirleyin.</p><p>MariaDB’de kullanıcı yalnızca kullanıcı adıyla tanımlanmaz. Kullanıcı adı ve bağlantı kaynağı birlikte değerlendirilir.</p><p>Örneğin:</p><pre>&#39;onurapp&#39;@&#39;localhost&#39;<br>&#39;onurapp&#39;@&#39;%&#39;</pre><p>Bunlar farklı kullanıcı tanımlarıdır. <strong>localhost </strong>için oluşturulan kullanıcının uzak bağlantılarda da aynı şekilde çalışacağını varsaymamalıyız.</p><h3>5. Veritabanı yetkilerini tanımlamak</h3><p>Kullanıcıyı oluşturmak tek başına yeterli değildir. Uygulamanın ilgili veritabanında işlem yapabilmesi için yetki vermeliyiz.</p><pre>GRANT ALL PRIVILEGES ON edirnehafriyat.*<br>TO &#39;onurapp&#39;@&#39;localhost&#39;;</pre><p>Bu komut, kullanıcıya veritabanındaki nesneler üzerinde ilgili tüm veritabanı düzeyi yetkilerini verir.</p><p>Ardından yetkileri kontrol edelim:</p><pre>SHOW GRANTS FOR &#39;onurapp&#39;@&#39;localhost&#39;;</pre><p>Örnek çıktı:</p><pre>GRANT USAGE ON *.*<br>TO &#39;onurapp&#39;@&#39;localhost&#39;<br>GRANT ALL PRIVILEGES ON `veritabaniadi`.*<br>TO &#39;onurapp&#39;@&#39;localhost&#39;</pre><p>Burada <strong>USAGE</strong>, tek başına veritabanı üzerinde işlem yapma yetkisi anlamına gelmez. Asıl veritabanı yetkisi ikinci satırda görülmektedir.</p><p>Üretim ortamında mümkün olduğunca yalnızca uygulamanın ihtiyaç duyduğu yetkileri vermek daha güvenlidir.</p><h3>6. Kullanıcı bağlantısını test etmek</h3><p>Uygulamaya geçmeden önce MariaDB bağlantısını bağımsız olarak test etmek, sorunun hangi katmanda olduğunu anlamamızı kolaylaştırır.</p><p>Önce mevcut konsoldan çıkalım:</p><pre>EXIT;</pre><p>Ardından CMD üzerinden yeni kullanıcıyla bağlanalım:</p><pre>&quot;C:\Program Files\MariaDB 10.11\bin\mysql.exe&quot; -h localhost -P 3306 -u onurapp -p veritabaniadi</pre><p>Parolayı girip aşağıdakine benzer bir çıktı alıyorsak bağlantı başarılıdır:</p><pre>Welcome to the MariaDB monitor.<br>MariaDB [veritabani adi]&gt;</pre><p>Bu test bize şunları doğrulamaya yardımcı olur:</p><ul><li>MariaDB sunucusuna erişilebiliyor.</li><li>Kullanıcı adı ve parola kabul ediliyor.</li><li>Kullanıcı belirtilen veritabanına bağlanabiliyor.</li></ul><p>Ancak bu test, ASP.NET Core uygulamasının aynı bağlantı ayarlarını kullandığını tek başına kanıtlamaz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac811b229a8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ASP.NET Core: How to Use IOptionsMonitor — Read Configuration Changes Without Restarting Your…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://karaoz-onr.medium.com/asp-net-core-how-to-use-ioptionsmonitor-read-configuration-changes-without-restarting-your-13c9a6ed3927?source=rss-2513b0cba0be------2"><img src="https://cdn-images-1.medium.com/max/662/1*_H33icM4b9kKVzBxXtHjdA.png" width="662"></a></p><p class="medium-feed-snippet">When developing applications with ASP.NET Core, we often store configuration settings in the appsettings.json file.</p><p class="medium-feed-link"><a href="https://karaoz-onr.medium.com/asp-net-core-how-to-use-ioptionsmonitor-read-configuration-changes-without-restarting-your-13c9a6ed3927?source=rss-2513b0cba0be------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://karaoz-onr.medium.com/asp-net-core-how-to-use-ioptionsmonitor-read-configuration-changes-without-restarting-your-13c9a6ed3927?source=rss-2513b0cba0be------2</link>
            <guid isPermaLink="false">https://medium.com/p/13c9a6ed3927</guid>
            <dc:creator><![CDATA[Onur Karaoz]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 03:18:21 GMT</pubDate>
            <atom:updated>2026-10-21T03:18:21.716Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[ASP.NET Core: IOptionsMonitor Kullanımı — Configuration Değişikliklerini Uygulamayı Yeniden…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://karaoz-onr.medium.com/asp-net-core-ioptionsmonitor-kullan%C4%B1m%C4%B1-configuration-de%C4%9Fi%C5%9Fikliklerini-uygulamay%C4%B1-yeniden-31c251876c08?source=rss-2513b0cba0be------2"><img src="https://cdn-images-1.medium.com/max/662/1*_H33icM4b9kKVzBxXtHjdA.png" width="662"></a></p><p class="medium-feed-snippet">ASP.NET Core ile uygulama geli&#x15F;tirirken baz&#x131; ayarlar&#x131; appsettings.json dosyas&#x131;nda tutar&#x131;z.</p><p class="medium-feed-link"><a href="https://karaoz-onr.medium.com/asp-net-core-ioptionsmonitor-kullan%C4%B1m%C4%B1-configuration-de%C4%9Fi%C5%9Fikliklerini-uygulamay%C4%B1-yeniden-31c251876c08?source=rss-2513b0cba0be------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://karaoz-onr.medium.com/asp-net-core-ioptionsmonitor-kullan%C4%B1m%C4%B1-configuration-de%C4%9Fi%C5%9Fikliklerini-uygulamay%C4%B1-yeniden-31c251876c08?source=rss-2513b0cba0be------2</link>
            <guid isPermaLink="false">https://medium.com/p/31c251876c08</guid>
            <dc:creator><![CDATA[Onur Karaoz]]></dc:creator>
            <pubDate>Sat, 17 Oct 2026 15:28:29 GMT</pubDate>
            <atom:updated>2026-10-17T15:28:29.661Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[ASP.NET Core MVC: What Is AddRazorRuntimeCompilation and How to Use It?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://karaoz-onr.medium.com/asp-net-core-mvc-what-is-addrazorruntimecompilation-and-how-to-use-it-bf7e9c647308?source=rss-2513b0cba0be------2"><img src="https://cdn-images-1.medium.com/max/662/1*_H33icM4b9kKVzBxXtHjdA.png" width="662"></a></p><p class="medium-feed-snippet">ASP.NET Core MVC development can become slower when you need to restart the application every time you make changes to .cshtml files.</p><p class="medium-feed-link"><a href="https://karaoz-onr.medium.com/asp-net-core-mvc-what-is-addrazorruntimecompilation-and-how-to-use-it-bf7e9c647308?source=rss-2513b0cba0be------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://karaoz-onr.medium.com/asp-net-core-mvc-what-is-addrazorruntimecompilation-and-how-to-use-it-bf7e9c647308?source=rss-2513b0cba0be------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf7e9c647308</guid>
            <dc:creator><![CDATA[Onur Karaoz]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 04:52:49 GMT</pubDate>
            <atom:updated>2026-10-16T04:52:49.386Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[ASP.NET Core MVC: AddRazorRuntimeCompilation Nedir, Nasıl Kullanılır?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://karaoz-onr.medium.com/asp-net-core-mvc-addrazorruntimecompilation-nedir-nas%C4%B1l-kullan%C4%B1l%C4%B1r-9ec6cf809474?source=rss-2513b0cba0be------2"><img src="https://cdn-images-1.medium.com/max/662/1*_H33icM4b9kKVzBxXtHjdA.png" width="662"></a></p><p class="medium-feed-snippet">ASP.NET Core MVC ile geli&#x15F;tirme yaparken .cshtml dosyalar&#x131;nda de&#x11F;i&#x15F;iklik yapt&#x131;ktan sonra uygulamay&#x131; yeniden ba&#x15F;latmak zorunda kalmak&#x2026;</p><p class="medium-feed-link"><a href="https://karaoz-onr.medium.com/asp-net-core-mvc-addrazorruntimecompilation-nedir-nas%C4%B1l-kullan%C4%B1l%C4%B1r-9ec6cf809474?source=rss-2513b0cba0be------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://karaoz-onr.medium.com/asp-net-core-mvc-addrazorruntimecompilation-nedir-nas%C4%B1l-kullan%C4%B1l%C4%B1r-9ec6cf809474?source=rss-2513b0cba0be------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ec6cf809474</guid>
            <dc:creator><![CDATA[Onur Karaoz]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 04:49:32 GMT</pubDate>
            <atom:updated>2026-10-16T04:49:32.808Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Elasticsearch with ASP.NET Core: Aggregation, Faceted Search, and Autocomplete]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://karaoz-onr.medium.com/elasticsearch-with-asp-net-core-aggregation-faceted-search-and-autocomplete-7c662fc2776d?source=rss-2513b0cba0be------2"><img src="https://cdn-images-1.medium.com/max/2000/1*Gn9J0XcDq33O4a2_mupVGw.jpeg" width="2000"></a></p><p class="medium-feed-snippet">In our previous two articles, we progressed from the basics of Elasticsearch to advanced search operations.</p><p class="medium-feed-link"><a href="https://karaoz-onr.medium.com/elasticsearch-with-asp-net-core-aggregation-faceted-search-and-autocomplete-7c662fc2776d?source=rss-2513b0cba0be------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://karaoz-onr.medium.com/elasticsearch-with-asp-net-core-aggregation-faceted-search-and-autocomplete-7c662fc2776d?source=rss-2513b0cba0be------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c662fc2776d</guid>
            <dc:creator><![CDATA[Onur Karaoz]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 03:19:45 GMT</pubDate>
            <atom:updated>2026-10-12T03:19:45.439Z</atom:updated>
        </item>
    </channel>
</rss>