如何查自己mysql的地址_mysql如何查看自己数据库文件所在的位置

第1步:

打开mysqml文件夹,显示的文件如下,然后找到my.ini文件,如图所示。

aec4b53e8079775c572e31dc8c08cb26.png

第2步:

选中my.ini文件,这时候点击鼠标右键依次选择”打开方式“然后选择”记事本打开“

53fff7d7216f502ac36dac87e0f13b3f.png

第3步:

以记事本的方式打开my.ini文件后,按ctrl+f搜索”datadir“就可以找到你数据库的物理路径

bde4615df1cfa85687693ac7ac8403fe.png

第4步:

如果你想修改数据库文件的存储位置,可以直接在这里修改,如下图红框所示。

90799901645e237c80c32ebf26bc7ca9.png

第5步:

按照上面所找到的路径,我们打开上面的路径的data文件夹,显示如下图。

9ecb8277b3db022da68a3bad033425ff.png

6

第6步:

如果想对数据库进行搬迁,只需要复制”data“这个文件夹,覆盖新环境下的”data“文件就可以了。

040afd9a05dfcec0715ab47d1c69d261.png

解决方法:

1、增加id文件是否存在的判断

2、方法写了2次h.GetFilePath("txtpath");

3、使用线程发生get请求增加时间限制2000

// 执行get请求.

RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(2000).setConnectTimeout(2000).build();//设置请求和传输超时时间

httpget.setConfig(requestConfig);

4、Cache类使用静态类,静态方法

5、数据池链接数

6、内存网站

7、if (!str.equals(""))

增加日志判断

序列化类增加

解决办法:

1.将内部类写成静态的

2.将内部类单独写一个.java文件 implements Serializable

避免死循环

方法写了2次h.GetFilePath("txtpath");

public static String readFile(String websiteid) {

Illegal access: this web application instance has been stopped already. Could not load META-INF/services/javax.xml.bind.JAXBContext. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.

javax.xml.bind.UnmarshalException: Unable to create an instance of javax.xml.ws.wsaddressing.W3CEndpointReference

- with linked exception:

# MySQL Server Instance Configuration File

# ----------------------------------------------------------------------

# Generated by the MySQL Server Instance Configuration Wizard

#

#

# Installation Instructions

# ----------------------------------------------------------------------

#

# On Linux you can copy this file to /etc/my.cnf to set global options,

# mysql-data-dir/my.cnf to set server-specific options

# (@localstatedir@ for this installation) or to

# ~/.my.cnf to set user-specific options.

#

# On Windows you should keep this file in the installation directory

# of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To

# make sure the server reads the config file use the startup option

# "--defaults-file".

#

# To run run the server from the command line, execute this in a

# command line shell, e.g.

# mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"

#

# To install the server as a Windows service manually, execute this in a

# command line shell, e.g.

# mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"

#

# And then execute this in a command line shell to start the server, e.g.

# net start MySQLXY

#

#

# Guildlines for editing this file

# ----------------------------------------------------------------------

#

# In this file, you can use all long options that the program supports.

# If you want to know the options a program supports, start the program

# with the "--help" option.

#

# More detailed information about the individual options can also be

# found in the manual.

#

#

# CLIENT SECTION

# ----------------------------------------------------------------------

#

# The following options will be read by MySQL client applications.

# Note that only client applications shipped by MySQL are guaranteed

# to read this section. If you want your own MySQL client program to

# honor these values, you need to specify it as an option during the

# MySQL client library initialization.

#

[client]

port=3309

[mysql]

default-character-set=gb2312

# SERVER SECTION

# ----------------------------------------------------------------------

#

# The following options will be read by the MySQL Server. Make sure that

# you have installed the server correctly (see above) so it reads this

# file.

#

[mysqld]

# The TCP/IP Port the MySQL Server will listen on

port=3309

#Path to installation directory. All paths are usually resolved relative to this.

basedir="C:/Program Files/MySQL/MySQL Server 5.5/"

#Path to the database root

datadir="C:/ProgramData/MySQL/MySQL Server 5.5/Data/"

# The default character set that will be used when a new schema or table is

# created and no character set is defined

character-set-server=gb2312

# The default storage engine that will be used when create new tables when

default-storage-engine=INNODB

# Set the SQL mode to strict

sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

# The maximum amount of concurrent sessions the MySQL server will

# allow. One of these connections will be reserved for a user with

# SUPER privileges to allow the administrator to login even if the

# connection limit has been reached.

max_connections=100

# Query cache is used to cache SELECT results and later return them

# without actual executing the same query once again. Having the query

# cache enabled may result in significant speed improvements, if your

# have a lot of identical queries and rarely changing tables. See the

# "Qcache_lowmem_prunes" status variable to check if the current value

# is high enough for your load.

# Note: In case your tables change very often or if your queries are

# textually different every time, the query cache may result in a

# slowdown instead of a performance improvement.

query_cache_size=32M

# The number of open tables for all threads. Increasing this value

# increases the number of file descriptors that mysqld requires.

# Therefore you have to make sure to set the amount of open files

# allowed to at least 4096 in the variable "open-files-limit" in

# section [mysqld_safe]

table_cache=256

# Maximum size for internal (in-memory) temporary tables. If a table

# grows larger than this value, it is automatically converted to disk

# based table This limitation is for a single table. There can be many

# of them.

tmp_table_size=35M

# How many threads we should keep in a cache for reuse. When a client

# disconnects, the client's threads are put in the cache if there aren't

# more than thread_cache_size threads from before. This greatly reduces

# the amount of thread creations needed if you have a lot of new

# connections. (Normally this doesn't give a notable performance

# improvement if you have a good thread implementation.)

thread_cache_size=8

#*** MyISAM Specific options

# The maximum size of the temporary file MySQL is allowed to use while

# recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.

# If the file-size would be bigger than this, the index will be created

# through the key cache (which is slower).

myisam_max_sort_file_size=100G

# If the temporary file used for fast index creation would be bigger

# than using the key cache by the amount specified here, then prefer the

# key cache method. This is mainly used to force long character keys in

# large tables to use the slower key cache method to create the index.

myisam_sort_buffer_size=69M

# Size of the Key Buffer, used to cache index blocks for MyISAM tables.

# Do not set it larger than 30% of your available memory, as some memory

# is also required by the OS to cache rows. Even if you're not using

# MyISAM tables, you should still set it to 8-64M as it will also be

# used for internal temporary disk tables.

key_buffer_size=50M

# Size of the buffer used for doing full table scans of MyISAM tables.

# Allocated per thread, if a full scan is needed.

read_buffer_size=64K

read_rnd_buffer_size=256K

# This buffer is allocated when MySQL needs to rebuild the index in

# REPAIR, OPTIMZE, ALTER table statements as well as in LOAD DATA INFILE

# into an empty table. It is allocated per thread so be careful with

# large settings.

sort_buffer_size=256K

#*** INNODB Specific options ***

# Use this option if you have a MySQL server with InnoDB support enabled

# but you do not plan to use it. This will save memory and disk space

# and speed up some things.

#skip-innodb

# Additional memory pool that is used by InnoDB to store metadata

# information. If InnoDB requires more memory for this purpose it will

# start to allocate it from the OS. As this is fast enough on most

# recent operating systems, you normally do not need to change this

# value. SHOW INNODB STATUS will display the current amount used.

innodb_additional_mem_pool_size=2M

# If set to 1, InnoDB will flush (fsync) the transaction logs to the

# disk at each commit, which offers full ACID behavior. If you are

# willing to compromise this safety, and you are running small

# transactions, you may set this to 0 or 2 to reduce disk I/O to the

# logs. Value 0 means that the log is only written to the log file and

# the log file flushed to disk approximately once per second. Value 2

# means the log is written to the log file at each commit, but the log

# file is only flushed to disk approximately once per second.

innodb_flush_log_at_trx_commit=1

# The size of the buffer InnoDB uses for buffering log data. As soon as

# it is full, InnoDB will have to flush it to disk. As it is flushed

# once per second anyway, it does not make sense to have it very large

# (even with long transactions).

innodb_log_buffer_size=1M

# InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and

# row data. The bigger you set this the less disk I/O is needed to

# access data in tables. On a dedicated database server you may set this

# parameter up to 80% of the machine physical memory size. Do not set it

# too large, though, because competition of the physical memory may

# cause paging in the operating system. Note that on 32bit systems you

# might be limited to 2-3.5G of user level memory per process, so do not

# set it too high.

innodb_buffer_pool_size=96M

# Size of each log file in a log group. You should set the combined size

# of log files to about 25%-100% of your buffer pool size to avoid

# unneeded buffer pool flush activity on log file overwrite. However,

# note that a larger logfile size will increase the time needed for the

# recovery process.

innodb_log_file_size=20M

# Number of threads allowed inside the InnoDB kernel. The optimal value

# depends highly on the application, hardware as well as the OS

# scheduler properties. A too high value may lead to thread thrashing.

innodb_thread_concurrency=8

log-error="C:/D/lamp/log/error.log"

general-log=1

general-log-file="C:/D/lamp/log/mysql.log"

long_query_time=3

slow_query_log=1

slow-query-log_file="C:/D/lamp/log/slowquery.log"

郁清叔叔
关注 关注
  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
MySQL查看自己数据库文件所在的位置】附:互联网大厂 数据库面试题:简述索引的作用,以及常见的索引类型和优缺点;MySQL的事务隔离级别有哪些?请分别说明各个隔离级别的特点以及可能出现的问题。
追光者♂:记录、分享、总结、提升,现象级专栏《Python从入门到人工智能》作者,无惧黑暗,坚信曙光
03-09 1万+
本篇文章较为详细地讲解了如何mysql数据库真实物理文件的存储位置,只要我们直接复制数据库文件,即可对数据库进行搬迁,也可以对数据库文件的存放位置进行改变。 方法如下: 第1步: 打开 mysqml 文件夹,显示的文件如下,然后找到 my.ini 文件,如图所示。 第2步: 选中 my.ini 文件,这时候点击鼠标右键依次选择”打开方式“然后选择”记事本打开“。如图。 第3步: 以记事本的方式打开 my.ini 文件后,按 ctrl+f 搜索 ”datadir“ 就可以找到你数据库
阿里云mysql怎么查看数据库_阿里云服务器如何查看数据库
weixin_42339991的博客
01-19 2967
阿里云服务器如何查看数据库,阿里云上布数据库。在阿里云ecs云服务器上部署数据库后,在平常的操作中可能会遇到些问题,可以先做个大致的了解:如果您想看更多的在ecs上的数据库的相关操作,请前往以下两个帮助页面查看:1、ECS安装Sqlserver数据库备份:(1)先打开SQLServer依次展开sqlserver根目录,并打开数据库(2)选择要备份的数据库名,鼠标右键任务->选择备份。(3)点...
python 点_Python 技术点
weixin_39612733的博客
11-23 175
1、文件操作1-1 遍历文件夹和文件import osrootDir = "/path/to/root"for parent, dirnames, filenames in os.walk(rootDir):for dirname in dirnames:print("parent is:" + parent)print("dirname is:" + dirname)for filename i...
查看本地MYSQL数据库的IP地址
YJ语
10-11 4万+
MYSQL IP地址
mysql 数据库管理
最新发布
2201_75549363的博客
08-28 921
数据定义语言(DDL)用于创建、修改和删除数据库对象,如数据库、表、索引等。
如何看自己创建数据库的存放位置
m0_46171719的博客
04-29 6724
一、打开数据库命令窗口输入进入密码 二、输入显示位置指令 show variables like '%datadir%'; 可以显示出来数据库位置 三、复制显示的位置进行找就好了 四、结束
快速查看Mysql数据库数据文件存放地址
EE_hui的博客
04-10 1490
今天介绍两种方法Mysql数据库数据文件的存放地址 1、使用Mysql安装后自带的编辑软件MySQL 5.7  Command  Line Client - unicode 使用如下命令: ? 1 >mysql> show global variables like "%datadir%";
mysql如何查看自己数据库文件所在的位置
习惯有你&的博客
11-14 1万+
本文详细讲解了如何mysql数据库真实物理文件的存储位置,只要我们直接复制数据库文件,即可对数据库进行搬迁,也可以对数据库文件的存放位置进行改变。 工具/原料 mysql数据库 方法/步骤 第1步: 打开mysqml文件夹,显示的文件如下,然后找到my.ini文件,如图所示。 第2步:
如何阿里云mysql地址_怎么查看阿里云服务器数据库
weixin_34310726的博客
02-05 1815
怎么查看阿里云服务器数据库,阿里云安装数据库。对于大多数小型或初期项目来说,我们可能常用的做法是先将web、数据库全部安装在一起,后期根据需要来看是否将数据库单独迁移分离。传统物理服务器可以这么多,云服务器也可以如此。以阿里云ecs云服务器为例,我们来看看在云服务器上搭建数据库的相关内容:1、为什么需要在ECS上部署数据库:阿里云有提供相应的高可用数据库架构RDS,但由于RDS具有一定的限制条件,...
IP地址离线数据库MySQL版)
04-11
IP地址离线数据库MySQL版)版本1,单条记录描述形式如下: 1 0.0.0.0 0.255.255.255 IANA CZ88.NET 该版本不包含INET_ATOI后的转化版本
mysql数据库数据库文件_MySQL学习笔记-数据库文件
weixin_42299205的博客
01-18 455
数据库文件MySQL主要文件类型有如下几种参数文件:my.cnf——MySQL实例启动的时候在哪里可以找到数据库文件,并且指定某些初始化参数,这些参数定义了某种内存结构的大小等设置,还介绍了参数类型以及定义作用域;日志文件:记录MySQL对某种条件做出响应时候写入的文件,包括错误日志、询日志、慢询日志、二进制日志;Mysql表结构文件:存放MySQL表结构定义文件,不论采用何种存储引擎,MyS...
如何查看MySql的安装位置
热门推荐
hxwflay的博客
11-14 5万+
1.点击win+r键,输入cmd,回车 2.在弹出的小黑框输入services.msc,回车 3.在弹出的窗口中找到MySQL,右键点击属性 4.在属性中即可找到MySQL的安装路径
mysql语句地址,mysql 语句
weixin_39613744的博客
03-24 199
看了一下我mysql,分享一下成果。当然,sql博大精深,欢迎高手吐槽,并献上有技术含量的句子。要加注释,因为菜鸟看不懂》。。。mysql语句基础。造出一张表。CREATE TABLE `main` (/*自动递增*/`id` int(10) NOT NULL AUTO_INCREMENT,`name` varchar(50) NOT NULL,`password` varchar(100) NO...
mysql显示服务器地址,怎样查看mysql服务器所在地址
weixin_28953361的博客
08-10 3503
怎样查看mysql服务器所在地址 内容精选换一换在弹性云服务器上安装完成后输入公网IP,无法连接目的虚拟机,端口无法访问工具。源端网络未连通目的端。目的端安全组未开放8084端口。目的端网络ACL禁用了8084端口。登录源端服务器后,在源端服务器中ping 目的端IP,如果无法正常ping通目的端,可参考弹性公网IP Ping不通检源端与目的端的DNS,防火墙,安全组、本地网络等。登在弹性云服务...
查看MySQL创建的数据库在电脑中的存储位置
m0_51791413的博客
02-18 2284
按下回车键后,会要求输入密码。输入数据库账号对应的密码,如果密码正确,就能顺利进入MySQL命令行。其中,用户名是数据库的访问账号,-p表示需要输入密码才能连接数据库。通常ProgramData文件是被隐藏的。
mysql数据库本地登录无法查看数据库
weixin_30252709的博客
12-27 467
描述:使用工具连接mysql可以正常查看数据相关信息,在本地登录的时候却看不到数据库信息,而且使用用户登录不需要密码 解决一:首先解决本地登录需要要密码问题     原因是:     应为数据库里面有空用户     select*frommysql.userwhereuser='';     询如果有,把他删了然后重启mysql服务。解决二: 解决了用户登录需要...
MYSQL基础【2】-登入、查看、选择数据库
weixin_43763859的博客
05-28 1085
一、登入 mysql登陆的命令格式为: mysql−h[hostip]−u[username]−p[password][database]mysql -h [hostip] -u [username] -p [password] [database]mysql−h[hostip]−u[username]−p[password][database] 1.普通登陆mysql数据库 命令格式: mysql -u 用户名 -p 密码, 例如: mysql -u root -proot 如果在-p后没有提供密码,则会
查看MySQL指定数据库连接的服务地址
旷野历程
12-07 1182
information_schema.PROCESSLIST 是 MySQL 中的一个系统表,用于提供有关当前执行的 MySQL 进程的信息,包括连接的相关信息、正在执行的询、连接状态等。在 MySQL 中,要查看指定数据库连接的服务地址,可以询 information_schema.PROCESSLIST 表来获取有关当前 MySQL 进程的信息,包括连接的服务地址。注意:information_schema.PROCESSLIST 表提供的信息是瞬时的,可能会随时间而变化。
MYSQL (基础内容)一
一个后端菜鸟的博客
08-26 819
Mysql数据库基础部分1 基本介绍,基本操作,数据类型,等
写文章

热门文章

  • 如何查自己mysql的地址_mysql如何查看自己数据库文件所在的位置 12765
  • ad16自动布线设置规则_pcb自动布线设置_设置线间距与宽度设置_pcb布局布线技巧... 10424
  • linux查看时钟同步命令,Linux下查看设置时间及同步时间的命令 5678
  • 计算机组成原理A W寄存器实验,计算机组成原理实验报告11 5648
  • 计算机设置u盘启动,如何设置U盘启动_BIOS设置U盘启动教程 - U当家官网 4927

最新文章

  • 痞子衡嵌入式:在IAR开发环境下将尽可能多的代码重定向到RAM中执行的方法
  • 观测云对接 Pinpoint 最佳实践
  • 查看hadoop 用户名
2024年7篇
2021年150篇
2020年12篇

目录

目录

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值

深圳坪山网站建设公司体育行业网站优化官方网站优化济南优化网站有哪些邯郸网站优化方案重庆网站排名优化报价长丰网站优化费用具体网站seo优化策划书上海徐汇网站优化射洪市网站seo优化排名seo优化如何提高网站权重网站优化是咋做上去的梅州首页网站关键词优化排名项城网站自然优化收费标准网站前端性能优化资讯网站优化排名拱墅企业网站优化推广搜索网站的优化热销易速达江西网站优化软件罗湖如何网站优化广告昆明网站优化服务操作网站优化站长应该具备什么推推蛙怎么优化企业网站邯郸家装行业网站优化推广技巧黄浦区官网网站优化哪家好苏州网站排名优化滨江网站优化服务3g网站好优化吗西安高端网站优化普陀区公司官方网站优化定制聊城正规网站优化价格香港通过《维护国家安全条例》两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”19岁小伙救下5人后溺亡 多方发声卫健委通报少年有偿捐血浆16次猝死汪小菲曝离婚始末何赛飞追着代拍打雅江山火三名扑火人员牺牲系谣言男子被猫抓伤后确诊“猫抓病”周杰伦一审败诉网易中国拥有亿元资产的家庭达13.3万户315晚会后胖东来又人满为患了高校汽车撞人致3死16伤 司机系学生张家界的山上“长”满了韩国人?张立群任西安交通大学校长手机成瘾是影响睡眠质量重要因素网友洛杉矶偶遇贾玲“重生之我在北大当嫡校长”单亲妈妈陷入热恋 14岁儿子报警倪萍分享减重40斤方法杨倩无缘巴黎奥运考生莫言也上北大硕士复试名单了许家印被限制高消费奥巴马现身唐宁街 黑色着装引猜测专访95后高颜值猪保姆男孩8年未见母亲被告知被遗忘七年后宇文玥被薅头发捞上岸郑州一火锅店爆改成麻辣烫店西双版纳热带植物园回应蜉蝣大爆发沉迷短剧的人就像掉进了杀猪盘当地回应沈阳致3死车祸车主疑毒驾开除党籍5年后 原水城县长再被查凯特王妃现身!外出购物视频曝光初中生遭15人围殴自卫刺伤3人判无罪事业单位女子向同事水杯投不明物质男子被流浪猫绊倒 投喂者赔24万外国人感慨凌晨的中国很安全路边卖淀粉肠阿姨主动出示声明书胖东来员工每周单休无小长假王树国卸任西安交大校长 师生送别小米汽车超级工厂正式揭幕黑马情侣提车了妈妈回应孩子在校撞护栏坠楼校方回应护栏损坏小学生课间坠楼房客欠租失踪 房东直发愁专家建议不必谈骨泥色变老人退休金被冒领16年 金额超20万西藏招商引资投资者子女可当地高考特朗普无法缴纳4.54亿美元罚金浙江一高校内汽车冲撞行人 多人受伤

深圳坪山网站建设公司 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化