Manual:Update.php/bn
মিডিয়াউইকি ফাইল: update.php | |
---|---|
অবস্থান: | maintenance/ |
উৎস কোড: | master • 1.43.1 • 1.42.6 • 1.39.12 |
শ্রেণী: | UpdateMediaWiki |
বিস্তারিত
update.php মিডিয়াউইকির বর্তমান সংস্করণের সাথে কাজ করার জন্য MediaWiki ডাটাবেস স্কিমা আপডেট করা প্রয়োজন কিনা তা পরীক্ষা করে।
মিডিয়াউইকির প্রতিটি upgrade পরে অথবা একটি স্কিমা আপডেটের প্রয়োজন এমন একটি এক্সটেনশন আপডেট বা ইনস্টল করার পরে আপনার update.php
চালানো উচিত।
স্কিমা আপডেটের প্রয়োজন এমন বেশিরভাগ এক্সটেনশন তাদের ডকুমেন্টেশনে তাই বলবে।
Usage
ব্রাউজার থেকে
আপনার সার্ভারের কমান্ড লাইনে অ্যাক্সেস না থাকলে, আপডেট স্ক্রিপ্ট চালানোর জন্য ওয়েব আপডেটার ব্যবহার করুন।
কমান্ড লাইন থেকে
কমান্ড লাইন থেকে, বা একটি SSH শেল বা অনুরূপ:
$ php maintenance/run.php update
Vagrant দৃষ্টান্তে নিম্নলিখিত ব্যবহার করুন (আপনার vagrant ssh এর মধ্যে থেকে)।
$ mwscript update.php
পরামিতি
এই স্ক্রিপ্টটি বেশ কিছু প্যারামিটার (জেনারিক, স্ক্রিপ্ট নির্ভর এবং স্ক্রিপ্ট নির্দিষ্ট) অফার করে যা কিছু উইকি পরিবেশে প্রয়োজন হতে পারে।
জেনেরিক রক্ষণাবেক্ষণ পরামিতি
--help
- তাদের ব্যবহারের সংক্ষিপ্ত ব্যাখ্যা সহ সমস্ত উপলব্ধ স্ক্রিপ্ট প্যারামিটার (জেনারিক, স্ক্রিপ্ট নির্ভর এবং স্ক্রিপ্ট নির্দিষ্ট) একটি প্রম্পট পেতে ব্যবহৃত হয়। এগুলি কম প্রায়ই ব্যবহৃত পরামিতি।
--wiki wikiId
- উইকি ফ্যামিলি আপডেট করুন যদি ডাটাবেসের নাম ভার্চুয়াল হোস্টের উপর নির্ভর করে, যেখানে উইকিআইডি - ডাটাবেসের নাম (যেমন enwiki, dewiki...)
--conf
- Specifies the config file (the
LocalSettings.php
file for the specific wiki). Used for wiki families.
স্ক্রিপ্ট নির্দিষ্ট পরামিতি
--quick
- কাউন্টডাউন ক্রম এড়িয়ে যান
--initial
- (introduced in 1.43) Do initial updates required after manual installation using tables-generated.sql
--doshared
- Update shared tables as well.
--noschema
- All changes to the table structure or table additions are skipped. Only data changes are made.
--schema
- No schema changes are made to the database, but the schema changes are saved to a separate SQL file that can be run.
- Allows "update.php" to be run when $wgAllowSchemaUpdates is set to false. This is useful for non-WMF environments where strict DB permissions allow database updates (which "update.php" performs), but no schema changes (such as adding or dropping tables or indexes, which "update.php" also performs).
--force
- Run this script even if configuration options disable it.
--skip-external-dependencies
- when using composer.local.json to let Composer install extensions and their dependencies, you may see an error message saying that there is a mismatch between the installed and required version (e.g. "mediawiki/semantic-breadcrumb-links: 1.3.0 installed, ~1.3 required"). You can use this parameter to ignore the message and run update.php regardless.
--skip-config-validation
- (introduced in 1.39) Skips checking whether the existing configuration is valid. Otherwise, this script will not run if an invalid configuration is detected.
--skip-compat-checks
- (removed in 1.41) Skips compatibility checks (Gerrit change 851684)
--nopurge
- (removed in 1.36) objectcache টেবিল পরিষ্কার করবেন না। সাধারণত
update.php
objectcache টেবিল (সাধারণত পার্সার ক্যাশে এবং বার্তা ক্যাশে থাকে), msg_resource এবং msg_resource_links (এগুলি $লোডার বার্তা ক্যাশে করার জন্য ব্যবহৃত হয় এবং 1.21 এবং পরবর্তীতে সাফ করা হয়) ডাটাবেসের টেবিলগুলিকে পরিষ্কার করে, যদি আপনি না চান এই টেবিলটি পরিষ্কার করুন,--nopurge
বিকল্পটি ব্যবহার করুন।
See also
- For detailed instruction on using
update.php
, see ম্যানুয়াল:আপগ্রেড করা , Manual:Upgrading#Command_line